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

svn at pcbsd.org svn at pcbsd.org
Thu Oct 8 13:18:25 PDT 2009


Author: kris
Date: 2009-10-08 13:18:25 -0700 (Thu, 08 Oct 2009)
New Revision: 4613

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

Updated the disk-info listing, added the type, such as IDE / SATA, SCSI to the list



Modified: pcbsd/trunk/pc-sysinstall/backend-query/disk-info.sh
===================================================================
--- pcbsd/trunk/pc-sysinstall/backend-query/disk-info.sh	2009-10-08 19:37:15 UTC (rev 4612)
+++ pcbsd/trunk/pc-sysinstall/backend-query/disk-info.sh	2009-10-08 20:18:25 UTC (rev 4613)
@@ -39,3 +39,8 @@
 KB="`diskinfo -v ad0 | grep 'bytes' | cut -d '#' -f 1 | tr -s '\t' ' ' | tr -d ' '`"
 convert_byte_to_megabyte ${KB}
 echo "size=$MB"
+
+# Now get the Controller Type
+CTYPE="`dmesg | grep "^${1}:" | grep "B <" | cut -d '>' -f 2 | cut -d ' ' -f 3-10`"
+echo "type=$CTYPE"
+



More information about the Commits mailing list