svn commit: r222611 - head/usr.sbin/bsdinstall/scripts

Bjoern A. Zeeb bz at FreeBSD.org
Thu Jun 2 14:08:51 UTC 2011


Author: bz
Date: Thu Jun  2 14:08:50 2011
New Revision: 222611
URL: http://svn.freebsd.org/changeset/base/222611

Log:
  Empty the network configuration only after the user decided to pick an
  interface.  Otherwise an accidental start of the netowrk configuration
  and immediate cancel after the install has finished removes the previously
  configured settings.
  
  Discussed with:	nwhitehorn
  Sponsored by:	The FreeBSD Foundation
  Sponsored by:	iXsystems

Modified:
  head/usr.sbin/bsdinstall/scripts/netconfig

Modified: head/usr.sbin/bsdinstall/scripts/netconfig
==============================================================================
--- head/usr.sbin/bsdinstall/scripts/netconfig	Thu Jun  2 14:04:07 2011	(r222610)
+++ head/usr.sbin/bsdinstall/scripts/netconfig	Thu Jun  2 14:08:50 2011	(r222611)
@@ -41,8 +41,6 @@ DIALOG_TAGS=""
 : ${DIALOG_ITEM_HELP=4}
 : ${DIALOG_ESC=255}
 
-echo -n > $BSDINSTALL_TMPETC/rc.conf.net
-
 for IF in `ifconfig -l`; do
 	test "$IF" = "lo0" && continue
 	(ifconfig -g wlan | egrep -wq $IF) && continue
@@ -56,6 +54,8 @@ INTERFACE=`echo $DIALOG_TAGS | xargs dia
 if [ $? -eq $DIALOG_CANCEL ]; then exit 1; fi
 exec 3>&-
 
+: > $BSDINSTALL_TMPETC/rc.conf.net
+
 # Do a dirty check to see if this a wireless interface -- there should be a
 # better way
 IFCONFIG_PREFIX=""


More information about the svn-src-head mailing list