[PC-BSD Commits] r6485 - pcbsd/trunk/pc-sysinstall/backend-query
svn at pcbsd.org
svn at pcbsd.org
Thu Apr 1 09:31:35 PDT 2010
Author: kris
Date: 2010-04-01 09:31:34 -0700 (Thu, 01 Apr 2010)
New Revision: 6485
Modified:
pcbsd/trunk/pc-sysinstall/backend-query/disk-list.sh
Log:
Sort the output of our disk listing, make sure we get ad0 before ad1, and ad0 before da0, etc
Modified: pcbsd/trunk/pc-sysinstall/backend-query/disk-list.sh
===================================================================
--- pcbsd/trunk/pc-sysinstall/backend-query/disk-list.sh 2010-04-01 09:02:53 UTC (rev 6484)
+++ pcbsd/trunk/pc-sysinstall/backend-query/disk-list.sh 2010-04-01 16:31:34 UTC (rev 6485)
@@ -25,8 +25,15 @@
NEWLINE=" <Unknown Device>"
fi
- # Echo out the found line
- echo "${DEV}:${NEWLINE}"
+ # Save the disk list
+ if [ ! -z "$DLIST" ]
+ then
+ DLIST="\n${DLIST}"
+ fi
+ DLIST="${DEV}:${NEWLINE}${DLIST}"
fi
done
+
+# Echo out the found line
+echo -e "$DLIST" | sort
More information about the Commits
mailing list