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
 
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to