[PC-BSD Commits] r6385 - pcbsd/trunk/pc-sysinstall/conf

svn at pcbsd.org svn at pcbsd.org
Wed Mar 10 18:01:24 PST 2010


Author: kris
Date: 2010-03-10 18:01:23 -0800 (Wed, 10 Mar 2010)
New Revision: 6385

Modified:
   pcbsd/trunk/pc-sysinstall/conf/pc-sysinstall.conf
Log:

Dont show errors about missing PCBSDVERSION



Modified: pcbsd/trunk/pc-sysinstall/conf/pc-sysinstall.conf
===================================================================
--- pcbsd/trunk/pc-sysinstall/conf/pc-sysinstall.conf	2010-03-09 23:39:50 UTC (rev 6384)
+++ pcbsd/trunk/pc-sysinstall/conf/pc-sysinstall.conf	2010-03-11 02:01:23 UTC (rev 6385)
@@ -63,5 +63,12 @@
 # Our internet mirror listing file location
 NETSERVER="http://updates.pcbsd.org"
 ARCH="`uname -m`"
-VERSION="`cat /PCBSDVERSION`"
+
+# Check if we are running on a PC-BSD Disk
+if [ -e "/PCBSDVERSION" ] ; then
+  VERSION="`cat /PCBSDVERSION`"
+else
+  VERSION="UNKNOWN"
+fi
+
 MIRRORLIST="${NETSERVER}/mirrors-netinstall.php?ver=${VERSION}&arch=${ARCH}"



More information about the Commits mailing list