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
|
# 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
|
# add partitions and binds
|
||||||
configlocal
|
configlocal
|
||||||
|
@ -209,4 +213,4 @@ while(){
|
||||||
nobootprompt=()
|
nobootprompt=()
|
||||||
user=()
|
user=()
|
||||||
rm -f /srv/^(cfs boot slashn cs dns)
|
rm -f /srv/^(cfs boot slashn cs dns)
|
||||||
} </dev/cons >/dev/cons >[2]/dev/cons
|
} </dev/cons
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
#!/bin/rc
|
#!/bin/rc
|
||||||
|
|
||||||
if(! bind -a '#u' /dev)
|
if(! bind -a '#u' /dev)
|
||||||
exit
|
exit
|
||||||
mkdir -m 0700 '#σc/usb'
|
mkdir -m 0700 '#σc/usb'
|
||||||
|
@ -37,6 +36,3 @@ if(! nusb/usbd)
|
||||||
|
|
||||||
bind -a '#σ/usb' /dev
|
bind -a '#σ/usb' /dev
|
||||||
|
|
||||||
if(! ~ $#usbdelay 0)
|
|
||||||
sleep $usbdelay
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue