ppcrcd/trunk/conf.dir/usr/lib/ppcrcd/hw-detect
sparky
cvs at pld-linux.org
Sun Mar 5 19:15:06 CET 2006
Author: sparky
Date: Sun Mar 5 19:15:00 2006
New Revision: 7099
Modified:
ppcrcd/trunk/conf.dir/usr/lib/ppcrcd/hw-detect
Log:
- added partwait option, for waiting just before detecting partitions,
useful for usb-storage devices which takes time to start
Modified: ppcrcd/trunk/conf.dir/usr/lib/ppcrcd/hw-detect
==============================================================================
--- ppcrcd/trunk/conf.dir/usr/lib/ppcrcd/hw-detect (original)
+++ ppcrcd/trunk/conf.dir/usr/lib/ppcrcd/hw-detect Sun Mar 5 19:15:00 2006
@@ -37,6 +37,14 @@
' | sort | uniq >> /etc/modprobe.conf
+partwait=$(cmdvar partwait)
+if [ -z "$partwait" ]; then
+ cmdopt nonvpartwait || serv=$(nvvar partwait)
+fi
+if [ -n "$partwait" ]; then
+ verbose 2 "Waiting $partwait seconds"
+ sleep $partwait
+fi
echo -e "\n# autogenerated" >> /etc/fstab
More information about the pld-cvs-commit
mailing list