daily pastebin goal
28%
SHARE
TWEET

/sbin/wait4usb patch s243a (tharpup6.0.6)

s243a Jan 28th, 2018 72 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top