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
 }
 
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to