[PC-BSD Commits] r2476 - pcbsd/trunk/installcd-overlay/usr/local/pcbsd/Components/opera

svn at pcbsd.org svn at pcbsd.org
Tue Jul 29 06:28:17 PDT 2008


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

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

Updated the opera PBI installer



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



More information about the Commits mailing list