diff --git a/create-vmachine.sh b/create-vmachine.sh index c67c4f1..117309d 100755 --- a/create-vmachine.sh +++ b/create-vmachine.sh @@ -102,7 +102,10 @@ ln -s /usr/share/zoneinfo/${VM_TZ} "${MOUNTPOINT}"/etc/localtime echo ${VM_TZ} > "${MOUNTPOINT}"/etc/timezone echo "Configuring network..." -echo 'config_eth0="dhcp"' > "${MOUNTPOINT}"/etc/conf.d/net +cat < "${MOUNTPOINT}"/etc/conf.d/net +config_eth0="dhcp" +dhcpcd_eth0="-q" +EOF ln -s net.lo "${MOUNTPOINT}"/etc/init.d/net.eth0 ln -s /etc/init.d/net.eth0 "${MOUNTPOINT}"/etc/runlevels/default/