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

svn at pcbsd.org svn at pcbsd.org
Wed May 7 07:55:29 PDT 2008


Author: melkor
Date: 2008-05-07 07:55:29 -0700 (Wed, 07 May 2008)
New Revision: 1855

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



M    scripts/PCBSD.FindUpdateParts.sh


Modified: pcbsd/trunk/installcd-overlay/usr/local/pcbsd/scripts/PCBSD.FindUpdateParts.sh
===================================================================
--- pcbsd/trunk/installcd-overlay/usr/local/pcbsd/scripts/PCBSD.FindUpdateParts.sh	2008-05-07 14:53:47 UTC (rev 1854)
+++ pcbsd/trunk/installcd-overlay/usr/local/pcbsd/scripts/PCBSD.FindUpdateParts.sh	2008-05-07 14:55:29 UTC (rev 1855)
@@ -4,12 +4,12 @@
 
 for i in `find -E /dev -regex '/dev/(ad|ar|aacd|mixd|mlyd|amrd|idad|twed|da)[0-9]+s[1-4]' -print`
 do
-  if [ -e "/dev/${i}a" ]
+  if [ -e "${i}a" ]
   then
-    mount /dev/${i}a /mnt
-    if [ -e "/dev/${i}b" ]
+    mount ${i}a /mnt
+    if [ -e "${i}b" ]
     then
-      swapon /dev/${i}b
+      swapon ${i}b
     fi
 
     touch /tmp/TempUMount
@@ -44,6 +44,6 @@
     umount /mnt      
     rm /tmp/TempUMount
         
-  fi # End of if /dev/${i}a
+  fi # End of if ${i}a
      
 done



More information about the Commits mailing list