[PC-BSD Commits] r5048 - pcbsd/trunk/pc-sysinstall/backend-query

svn at pcbsd.org svn at pcbsd.org
Tue Nov 17 12:37:40 PST 2009


Author: kris
Date: 2009-11-17 12:37:39 -0800 (Tue, 17 Nov 2009)
New Revision: 5048

Modified:
   pcbsd/trunk/pc-sysinstall/backend-query/disk-info.sh
Log:

Fixed bug quering disk info



Modified: pcbsd/trunk/pc-sysinstall/backend-query/disk-info.sh
===================================================================
--- pcbsd/trunk/pc-sysinstall/backend-query/disk-info.sh	2009-11-17 19:47:29 UTC (rev 5047)
+++ pcbsd/trunk/pc-sysinstall/backend-query/disk-info.sh	2009-11-17 20:37:39 UTC (rev 5048)
@@ -36,7 +36,7 @@
 rm ${TMPDIR}/disk-${1}
 
 # Now get the disks size in MB
-KB="`diskinfo -v ad0 | grep 'bytes' | cut -d '#' -f 1 | tr -s '\t' ' ' | tr -d ' '`"
+KB="`diskinfo -v ${1} | grep 'bytes' | cut -d '#' -f 1 | tr -s '\t' ' ' | tr -d ' '`"
 convert_byte_to_megabyte ${KB}
 echo "size=$MB"
 



More information about the Commits mailing list