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

svn at pcbsd.org svn at pcbsd.org
Sun May 18 11:44:20 PDT 2008


Author: melkor
Date: 2008-05-18 11:44:19 -0700 (Sun, 18 May 2008)
New Revision: 1906

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

Fixed monscrous script


Modified: pcbsd/trunk/installcd-overlay/usr/local/pcbsd/scripts/PCBSD.NewFS.sh
===================================================================
--- pcbsd/trunk/installcd-overlay/usr/local/pcbsd/scripts/PCBSD.NewFS.sh	2008-05-18 14:21:44 UTC (rev 1905)
+++ pcbsd/trunk/installcd-overlay/usr/local/pcbsd/scripts/PCBSD.NewFS.sh	2008-05-18 18:44:19 UTC (rev 1906)
@@ -7,30 +7,9 @@
 
 swapon ${1}b
 
-echo "Running Newfs on ${1}a"
-newfs -U ${1}a >/dev/null 2>/dev/null
+for DevName in `ls -1 ${1}[a,d-h]`
+do
+  echo "Running Newfs on ${DevName}"
+  newfs -U ${DevName} >/dev/null 2>/dev/null
+done
 
-if [ -e "${1}e" ]
-then
-   echo "Running Newfs on ${1}e"
-   newfs -U ${1}e >/dev/null 2>/dev/null
-fi
-
-if [ -e "${1}f" ]
-then
-   echo "Running Newfs on ${1}f"
-   newfs -U ${1}f >/dev/null 2>/dev/null
-fi
-
-if [ -e "${1}g" ]
-then
-   echo "Running Newfs on ${1}g"
-   newfs -U ${1}g >/dev/null 2>/dev/null
-fi
-
-if [ -e "${1}h" ]
-then
-   echo "Running Newfs on ${1}h"
-   newfs -U ${1}h >/dev/null 2>/dev/null
-fi
-



More information about the Commits mailing list