Advertisement
s243a

/sbin/wait4usb patch s243a (tharpup6.0.6)

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