[PC-BSD Commits] r18581 - pcbsd/current/build-files/scripts

svn at pcbsd.org svn at pcbsd.org
Thu Aug 23 06:06:00 PDT 2012


Author: kris
Date: 2012-08-23 13:06:00 +0000 (Thu, 23 Aug 2012)
New Revision: 18581

Modified:
   pcbsd/current/build-files/scripts/makemfs-resizeusb.sh
   pcbsd/current/build-files/scripts/rc-resizeusb
Log:

Adjust the resize scripts, should be finished and ready now :)



Modified: pcbsd/current/build-files/scripts/makemfs-resizeusb.sh
===================================================================
--- pcbsd/current/build-files/scripts/makemfs-resizeusb.sh	2012-08-23 09:18:49 UTC (rev 18580)
+++ pcbsd/current/build-files/scripts/makemfs-resizeusb.sh	2012-08-23 13:06:00 UTC (rev 18581)
@@ -13,6 +13,8 @@
 cp /usr/bin/sed tmpmnt/bin/
 cp /usr/bin/rev tmpmnt/bin/
 cp /usr/bin/cut tmpmnt/bin/
+cp /usr/bin/tput tmpmnt/bin/
+cp /usr/bin/clear tmpmnt/bin/
 mkdir tmpmnt/dev
 mkdir tmpmnt/tmp
 mkdir tmpmnt/var

Modified: pcbsd/current/build-files/scripts/rc-resizeusb
===================================================================
--- pcbsd/current/build-files/scripts/rc-resizeusb	2012-08-23 09:18:49 UTC (rev 18580)
+++ pcbsd/current/build-files/scripts/rc-resizeusb	2012-08-23 13:06:00 UTC (rev 18581)
@@ -34,7 +34,7 @@
   echo "Adjusting partition tables on $rdev..."
   gpart resize -i 1 $rdev >/dev/null 2>/dev/null
   sleep 5 
-  echo "Running growfs on $dev..."
+  echo "Running growfs on ${dev}, this may take a while..."
   growfs -y /dev/$dev >/dev/null 2>/dev/null
 }
 
@@ -74,6 +74,10 @@
 PATH=/sbin:/bin:/usr/sbin:/usr/bin
 export HOME PATH
 
+# Sleep a moment to let USB devices settle
+sleep 10
+clear
+
 #
 # Running LIVE USB image, lets resize
 #
@@ -84,7 +88,7 @@
 dev=`glabel status | grep PCBSDUSB | awk '{print $3}'`
 if [ -n "$dev" ] ; then
   echo "Do you want to expand the file-system for this LIVE media?"
-  echo "This process may take 5-15~ minutes."
+  echo "This process may take up to 15 minutes."
   echo -e "Resize? (y/n):\c"
   read ans
   case $ans in



More information about the Commits mailing list