summaryrefslogtreecommitdiffstats
path: root/release
diff options
context:
space:
mode:
authorgjb <gjb@FreeBSD.org>2017-05-28 03:59:33 +0000
committergjb <gjb@FreeBSD.org>2017-05-28 03:59:33 +0000
commit47d48d3875bcca24c3338aa143e1822adbd5b67a (patch)
treeb81d8d0035e34fa438f8f6d5e0e975c191ab8356 /release
parentf43d5da5414aa01a655c9c1a05013d49ae98940a (diff)
downloadFreeBSD-src-47d48d3875bcca24c3338aa143e1822adbd5b67a.zip
FreeBSD-src-47d48d3875bcca24c3338aa143e1822adbd5b67a.tar.gz
MFC r318872:
Enable DHCP and IPv6 autoconfig on non-cloud VM images. PR: 203653 Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'release')
-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 6c3916e..fe937de 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
}
OpenPOWER on IntegriCloud