#! /bin/bash set -e eval $(llxcfg-showvars SRV_NIC) if [ "$SRV_NIC" ] ; then if llxcfg-listvars --files SRV_NIC |grep -q "^/etc/" ; then chroot /target llxcfg-setvars "SRV_NIC=$SRV_NIC" &> /dev/null || true fi fi if [ "$CODIGO_CENTRO" ] ; then if llxcfg-listvars --files CODIGO_CENTRO |grep -q "^/etc/" ; then chroot /target llxcfg-setvars "CODIGO_CENTRO=$CODIGO_CENTRO" &> /dev/null || true fi fi STATIC_RESOLV_CONF="/etc/resolv.conf" DYNAMIC_RESOLV_CONF="/etc/resolvconf/run/resolv.conf" rm -f "/target/$STATIC_RESOLV_CONF" ln -s "$DYNAMIC_RESOLV_CONF" "/target/$STATIC_RESOLV_CONF" chroot /target dpkg-reconfigure resolvconf --frontend noninteractive &> /dev/null || true exit 0