Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- /mnt/home/clean2/initrd-expanded/sbin/wait4usb 2017-02-16 05:03:45.000000000 +0800
- +++ ./initrd-expanded/sbin/wait4usb 2018-01-21 03:49:44.000000000 +0800
- @@ -6,6 +6,7 @@
- #sleep 1
- USBSTORAGES=0 ; CNTUSB=0
- +WAITDEV="${WAITDEV:-3}"
- while [ $USBSTORAGES -eq 0 ];do
- sleep 1
- echo -n "." > /dev/console
- @@ -19,7 +20,7 @@
- done
- #i want this to work with kernel that does not have my usb-storage patch, feedback is that 3 secs is enough...
- -while [ $CNTUSB -lt 3 ];do
- +while [ $CNTUSB -lt $WAITDEV ];do
- sleep 1
- CNTUSB=$(($CNTUSB+1))
- echo -en "\\033[1;33m.\\033[0;39m" >/dev/console #yellow dot
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement