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

svn at pcbsd.org svn at pcbsd.org
Mon Sep 8 08:50:42 PDT 2008


Author: kris
Date: 2008-09-08 08:50:42 -0700 (Mon, 08 Sep 2008)
New Revision: 2723

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

Also update the mounting script on USB to check for FAT partitions


Thanks to yerenkow at uct.ua!



Modified: pcbsd/trunk/installcd-overlay/usr/local/pcbsd/scripts/PCBSD.MountCD.sh
===================================================================
--- pcbsd/trunk/installcd-overlay/usr/local/pcbsd/scripts/PCBSD.MountCD.sh	2008-09-08 15:47:41 UTC (rev 2722)
+++ pcbsd/trunk/installcd-overlay/usr/local/pcbsd/scripts/PCBSD.MountCD.sh	2008-09-08 15:50:42 UTC (rev 2723)
@@ -41,7 +41,28 @@
 done
 fi
 
+# Check for USB Fat mounts now
+if [ "${FOUND}" = "0" ]
+then
+for i in `ls -1 /dev/da*`
+do
+  # Find the CD Device
+  /sbin/mount -t 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