[PC-BSD Commits] r5160 - in pcbsd/trunk/pc-sysinstall: . backend backend-query

svn at pcbsd.org svn at pcbsd.org
Mon Nov 30 06:09:27 PST 2009


Author: kris
Date: 2009-11-30 06:09:27 -0800 (Mon, 30 Nov 2009)
New Revision: 5160

Added:
   pcbsd/trunk/pc-sysinstall/backend-query/enable-net.sh
Modified:
   pcbsd/trunk/pc-sysinstall/backend/startautoinstall.sh
   pcbsd/trunk/pc-sysinstall/pc-sysinstall
Log:

Added option to enable NIC / networking for a front-end via call to backend



Modified: pcbsd/trunk/pc-sysinstall/backend/startautoinstall.sh
===================================================================
--- pcbsd/trunk/pc-sysinstall/backend/startautoinstall.sh	2009-11-30 10:02:51 UTC (rev 5159)
+++ pcbsd/trunk/pc-sysinstall/backend/startautoinstall.sh	2009-11-30 14:09:27 UTC (rev 5160)
@@ -43,7 +43,7 @@
 else
   # We need to fetch a remote file, check and set any nic options before doing so
   NICCFG=`grep "nic_config:" ${CONF} | grep -v "^#" | sed "s|nic_config: ||g" | sed "s|nic_config:||g"`
-  if [ "${NICCFG}" = "dhcp-all" ]
+  if [ "${NICCFG}" = "dhcp-all" -o "${NICCFG}" = "DHCP-ALL" ]
   then
     # Try to auto-enable dhcp on any nics we find
     enable_auto_dhcp


Property changes on: pcbsd/trunk/pc-sysinstall/backend-query/enable-net.sh
___________________________________________________________________
Added: svn:executable
   + *

Modified: pcbsd/trunk/pc-sysinstall/pc-sysinstall
===================================================================
--- pcbsd/trunk/pc-sysinstall/pc-sysinstall	2009-11-30 10:02:51 UTC (rev 5159)
+++ pcbsd/trunk/pc-sysinstall/pc-sysinstall	2009-11-30 14:09:27 UTC (rev 5160)
@@ -139,6 +139,10 @@
   setup-ssh-keys) ${QUERYDIR}/setup-ssh-keys.sh "${2}" "${3}" "${4}"
   ;;
 
+  # Function allows the setting of networking by a calling front-end
+  enable-net) ${QUERYDIR}/enable-net.sh "${2}" "${3}" "${4}" "${5}" "${6}"
+  ;;
+
   # Function which lists available backups on a rsync/ssh server
   list-rsync-backups) ${QUERYDIR}/list-rsync-backups.sh "${2}" "${3}" "${4}"
   ;;



More information about the Commits mailing list