Enable DHCP and IPv6 autoconfig on non-cloud VM images.

PR:		203653
MFC after:	3 days
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Glen Barber 2017-05-25 12:53:49 +00:00
parent ced98d784b
commit f8e26d73e1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=318872

View File

@ -157,6 +157,11 @@ vm_extra_enable_services() {
done
fi
if [ -z "${VMCONFIG}" -o -c "${VMCONFIG}" ]; then
echo 'ifconfig_DEFAULT="DHCP inet6 accept_rtadv"' >> \
${DESTDIR}/etc/rc.conf
fi
return 0
}