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

svn at pcbsd.org svn at pcbsd.org
Mon Apr 26 06:39:59 PDT 2010


Author: kris
Date: 2010-04-26 06:39:59 -0700 (Mon, 26 Apr 2010)
New Revision: 6589

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

Fixed error setting up resolv.conf, no : in the nameserver line



Modified: pcbsd/trunk/pc-sysinstall/backend/startautoinstall.sh
===================================================================
--- pcbsd/trunk/pc-sysinstall/backend/startautoinstall.sh	2010-04-26 13:19:22 UTC (rev 6588)
+++ pcbsd/trunk/pc-sysinstall/backend/startautoinstall.sh	2010-04-26 13:39:59 UTC (rev 6589)
@@ -53,7 +53,7 @@
     NICDNS=`grep "nic_dns:" ${CONF} | grep -v "^#" | sed "s|nic_dns: ||g" | sed "s|nic_dns:||g"`
     NICGATE=`grep "nic_gateway:" ${CONF} | grep -v "^#" | sed "s|nic_gateway: ||g" | sed "s|nic_gateway:||g"`
 
-    echo "nameserver: ${NICDNS}" >/etc/resolv.conf
+    echo "nameserver ${NICDNS}" >/etc/resolv.conf
 
     echo "Running command \"route add default ${NICGATE}\""
     route add default ${NICGATE}

Modified: pcbsd/trunk/pc-sysinstall/backend-query/enable-net.sh
===================================================================
--- pcbsd/trunk/pc-sysinstall/backend-query/enable-net.sh	2010-04-26 13:19:22 UTC (rev 6588)
+++ pcbsd/trunk/pc-sysinstall/backend-query/enable-net.sh	2010-04-26 13:39:59 UTC (rev 6589)
@@ -28,7 +28,7 @@
   echo "Enabling NIC: $NIC"
   ifconfig ${NIC} ${IP} ${NETMASK}
 
-  echo "nameserver: ${DNS}" >/etc/resolv.conf
+  echo "nameserver ${DNS}" >/etc/resolv.conf
 
   route add default ${GATE}
 fi



More information about the Commits mailing list