[PC-BSD Commits] r21599 - in pcbsd/current/src-sh: pc-extractoverlay xtrafiles/local/share/pcbsd/scripts

svn at pcbsd.org svn at pcbsd.org
Wed Feb 20 11:25:59 PST 2013


Author: kris
Date: 2013-02-20 19:25:59 +0000 (Wed, 20 Feb 2013)
New Revision: 21599

Modified:
   pcbsd/current/src-sh/pc-extractoverlay/pc-extractoverlay
   pcbsd/current/src-sh/xtrafiles/local/share/pcbsd/scripts/sys-init.sh
Log:

Fix a few bugs doing the initial setup of a new system



Modified: pcbsd/current/src-sh/pc-extractoverlay/pc-extractoverlay
===================================================================
--- pcbsd/current/src-sh/pc-extractoverlay/pc-extractoverlay	2013-02-20 19:22:39 UTC (rev 21598)
+++ pcbsd/current/src-sh/pc-extractoverlay/pc-extractoverlay	2013-02-20 19:25:59 UTC (rev 21599)
@@ -85,7 +85,7 @@
   if [ $? -ne 0 ] ; then
     # Setup /etc/defaults/rc.conf
     sed -i '' 's|/etc/rc.conf /etc/rc.conf.local|/etc/rc.conf.pcbsd /etc/rc.conf /etc/rc.conf.local|g' /etc/defaults/rc.conf 2>/dev/null
-    grep -q "rc.conf.pcbsd" ${PDESTDIR4}/etc/defaults/rc.conf
+    grep -q "rc.conf.pcbsd" /etc/defaults/rc.conf
     if [ $? -ne 0 ] ; then
       echo "WARNING: rc.conf.pcbsd not enabled in /etc/defaults/rc.conf"
       status="1"

Modified: pcbsd/current/src-sh/xtrafiles/local/share/pcbsd/scripts/sys-init.sh
===================================================================
--- pcbsd/current/src-sh/xtrafiles/local/share/pcbsd/scripts/sys-init.sh	2013-02-20 19:22:39 UTC (rev 21598)
+++ pcbsd/current/src-sh/xtrafiles/local/share/pcbsd/scripts/sys-init.sh	2013-02-20 19:25:59 UTC (rev 21599)
@@ -12,6 +12,10 @@
 # Do generic init
 ################################################
 
+if [ ! -d "/usr/home" ] ; then
+   mkdir /usr/home
+fi
+
 # Setup /home link
 if [ ! -e "/home" ] ; then
   ln -s /usr/home /home



More information about the Commits mailing list