[PC-BSD Commits] r2309 - pcbsd/trunk/installcd-overlay/usr/local/pcbsd/scripts

svn at pcbsd.org svn at pcbsd.org
Thu Jul 10 08:16:52 PDT 2008


Author: kris
Date: 2008-07-10 08:16:52 -0700 (Thu, 10 Jul 2008)
New Revision: 2309

Modified:
   pcbsd/trunk/installcd-overlay/usr/local/pcbsd/scripts/PCBSD.MountCD.sh
Log:

Added support for USB key to PCBSD7 install scripts



Modified: pcbsd/trunk/installcd-overlay/usr/local/pcbsd/scripts/PCBSD.MountCD.sh
===================================================================
--- pcbsd/trunk/installcd-overlay/usr/local/pcbsd/scripts/PCBSD.MountCD.sh	2008-07-10 15:10:14 UTC (rev 2308)
+++ pcbsd/trunk/installcd-overlay/usr/local/pcbsd/scripts/PCBSD.MountCD.sh	2008-07-10 15:16:52 UTC (rev 2309)
@@ -19,6 +19,29 @@
   fi 
 done
 
+
+# Check for any USB mounts now with our data we want
+if [ "${FOUND}" = "0" ]
+then
+for i in `ls -1 /dev/da*`
+do
+  # Find the CD Device
+  /sbin/mount_msdosfs $i ${CDMNT}
+  if [ -e "${FC_LZMA}" ]
+  then
+   FOUND=1
+   CDDEV="$i"
+   # Set our flag that this is a DVD type media, we will install all from one
+   # disk
+   touch /tmp/foundDVD
+   break
+  else
+   /sbin/umount ${CDMNT} >/dev/null 2>/dev/null
+  fi 
+done
+fi
+
+
 if [ "${FOUND}" = "1" ]
 then
    echo "${CDDEV}" >/tmp/cdmnt



More information about the Commits mailing list