[PC-BSD Commits] r2478 - pcbsd/trunk/installcd-overlay/usr/local/pcbsd/Components/source

svn at pcbsd.org svn at pcbsd.org
Tue Jul 29 06:30:16 PDT 2008


Author: kris
Date: 2008-07-29 06:30:16 -0700 (Tue, 29 Jul 2008)
New Revision: 2478

Modified:
   pcbsd/trunk/installcd-overlay/usr/local/pcbsd/Components/source/install.sh
Log:

Updated the installer for FBSD system source from network



Modified: pcbsd/trunk/installcd-overlay/usr/local/pcbsd/Components/source/install.sh
===================================================================
--- pcbsd/trunk/installcd-overlay/usr/local/pcbsd/Components/source/install.sh	2008-07-29 13:29:32 UTC (rev 2477)
+++ pcbsd/trunk/installcd-overlay/usr/local/pcbsd/Components/source/install.sh	2008-07-29 13:30:16 UTC (rev 2478)
@@ -1,10 +1,25 @@
 #!/bin/sh
 # This script installs the freebsd source
 
+# Configuration file
+. /usr/local/pcbsd/scripts/PCBSD.Config
+
+DISPLAY=""; export DISPLAY
+
 mkdir -p /mnt/tmp/components
 
-cp /cdmnt/components/src.tbz /mnt/tmp/components/
+# If we are on a network connection
+if [ -e "/tmp/networkURL" ]
+then
+  cd ${FSMNT}/tmp/components
+  ${FETCHCMD} ${NETPATH}/PBI/src.tbz
+else
+  cp /cdmnt/components/src.tbz /mnt/tmp/components/
+fi
 
+
+
+
 # Make our install script
 echo '#!/bin/sh
 rm -rf /usr/src



More information about the Commits mailing list