svn commit: r318872 - head/release/tools

Glen Barber gjb at FreeBSD.org
Thu May 25 12:53:50 UTC 2017


Author: gjb
Date: Thu May 25 12:53:49 2017
New Revision: 318872
URL: https://svnweb.freebsd.org/changeset/base/318872

Log:
  Enable DHCP and IPv6 autoconfig on non-cloud VM images.
  
  PR:		203653
  MFC after:	3 days
  Sponsored by:	The FreeBSD Foundation

Modified:
  head/release/tools/vmimage.subr

Modified: head/release/tools/vmimage.subr
==============================================================================
--- head/release/tools/vmimage.subr	Thu May 25 12:04:23 2017	(r318871)
+++ head/release/tools/vmimage.subr	Thu May 25 12:53:49 2017	(r318872)
@@ -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
 }
 


More information about the svn-src-all mailing list