boot: check nousbrc boot parameter, add delay
This commit is contained in:
parent
4ffaa215ab
commit
02217fa6c2
2 changed files with 6 additions and 6 deletions
|
@ -161,7 +161,11 @@ if(test -x /bin/aux/kbdfs){
|
|||
}
|
||||
|
||||
# usb devices
|
||||
nusbrc
|
||||
if(test -x /bin/nusbrc && ! test -e /env/nousbrc)
|
||||
nusbrc
|
||||
|
||||
# wait for devices to settle down
|
||||
sleep 2
|
||||
|
||||
# add partitions and binds
|
||||
configlocal
|
||||
|
@ -209,4 +213,4 @@ while(){
|
|||
nobootprompt=()
|
||||
user=()
|
||||
rm -f /srv/^(cfs boot slashn cs dns)
|
||||
} </dev/cons >/dev/cons >[2]/dev/cons
|
||||
} </dev/cons
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#!/bin/rc
|
||||
|
||||
if(! bind -a '#u' /dev)
|
||||
exit
|
||||
mkdir -m 0700 '#σc/usb'
|
||||
|
@ -37,6 +36,3 @@ if(! nusb/usbd)
|
|||
|
||||
bind -a '#σ/usb' /dev
|
||||
|
||||
if(! ~ $#usbdelay 0)
|
||||
sleep $usbdelay
|
||||
|
||||
|
|
Loading…
Reference in a new issue