similar to my last commit, but combined the two waits for the usb devices. still configurable, but with usbwait. If usbwait is not defined then it defaults to the original 2 seconds.
This commit is contained in:
parent
1d64be1984
commit
3f9d92c1a8
2 changed files with 7 additions and 6 deletions
|
@ -58,8 +58,6 @@ fn ask {
|
|||
}
|
||||
|
||||
mt=()
|
||||
. /rc/lib/net.rc
|
||||
. /rc/lib/local.rc
|
||||
|
||||
fn main{
|
||||
mp=()
|
||||
|
@ -169,8 +167,14 @@ if(test -x /bin/nusbrc && ! test -e /env/nousbrc)
|
|||
nusbrc
|
||||
|
||||
# wait for devices to settle down
|
||||
if(~ $#usbwait 1)
|
||||
sleep $usbwait
|
||||
if(~ $#usbwait 0)
|
||||
sleep 2
|
||||
|
||||
. /rc/lib/net.rc
|
||||
. /rc/lib/local.rc
|
||||
|
||||
# add partitions and binds
|
||||
configlocal
|
||||
|
||||
|
|
|
@ -1,9 +1,6 @@
|
|||
#!/bin/rc
|
||||
|
||||
fn confignet{
|
||||
if(~ $#netwait 1)
|
||||
sleep $netwait
|
||||
|
||||
must ip/ipconfig -p $*
|
||||
if(~ $#fs 0)
|
||||
fs=`{awk -F'=' '/fs=/{print $2; exit}' /net/ndb}
|
||||
|
|
Loading…
Reference in a new issue