[PC-BSD Commits] r2473 - pcbsd/trunk/installcd-overlay/usr/local/pcbsd/Components/firefox

svn at pcbsd.org svn at pcbsd.org
Tue Jul 29 06:21:57 PDT 2008


Author: kris
Date: 2008-07-29 06:21:57 -0700 (Tue, 29 Jul 2008)
New Revision: 2473

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

Updated optional PBI installer for FireFox



Modified: pcbsd/trunk/installcd-overlay/usr/local/pcbsd/Components/firefox/install.sh
===================================================================
--- pcbsd/trunk/installcd-overlay/usr/local/pcbsd/Components/firefox/install.sh	2008-07-29 13:17:38 UTC (rev 2472)
+++ pcbsd/trunk/installcd-overlay/usr/local/pcbsd/Components/firefox/install.sh	2008-07-29 13:21:57 UTC (rev 2473)
@@ -1,10 +1,21 @@
 #!/bin/sh
-# This script installs the OpenOffice PBI
+# This script installs the FireFox PBI
+
+# Configuration file
+. /usr/local/pcbsd/scripts/PCBSD.Config
+
 DISPLAY=""; export DISPLAY
 
 mkdir -p /mnt/tmp/components
 
-cp /cdmnt/PBI/Firefox* /mnt/tmp/components/
+# If we are on a network connection
+if [ -e "/tmp/networkURL" ]
+then
+  cd ${FSMNT}/tmp/components
+  ${FETCHCMD} ${NETPATH}/PBI/${FIREFOXPBI}
+else
+  cp /cdmnt/PBI/${FIREFOXPBI} /mnt/tmp/components/
+fi
 
 # Make our install script
 echo '#!/bin/sh



More information about the Commits mailing list