aboutsummaryrefslogtreecommitdiff
path: root/release/tools/vmimage.subr
diff options
context:
space:
mode:
authorGlen Barber <gjb@FreeBSD.org>2017-05-25 12:53:49 +0000
committerGlen Barber <gjb@FreeBSD.org>2017-05-25 12:53:49 +0000
commitf8e26d73e1381ab1a259063308cf8271e54ae1cb (patch)
treeb22bba646500666f2d703ccad444c90ac22064b6 /release/tools/vmimage.subr
parentced98d784ba3ac8e6f4cc2d31d3c0d842c6fdd90 (diff)
downloadsrc-f8e26d73e1381ab1a259063308cf8271e54ae1cb.tar.gz
src-f8e26d73e1381ab1a259063308cf8271e54ae1cb.zip
Enable DHCP and IPv6 autoconfig on non-cloud VM images.
PR: 203653 MFC after: 3 days Sponsored by: The FreeBSD Foundation
Notes
Notes: svn path=/head/; revision=318872
Diffstat (limited to 'release/tools/vmimage.subr')
-rw-r--r--release/tools/vmimage.subr5
1 files changed, 5 insertions, 0 deletions
diff --git a/release/tools/vmimage.subr b/release/tools/vmimage.subr
index 6c3916e333e7..fe937defc27a 100644
--- a/release/tools/vmimage.subr
+++ b/release/tools/vmimage.subr
@@ -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
}