added in a way to make net.rc wait for the network hardware to come up before running ip/ipconfig. This fixes the issue with the Raspberry Pi where ip/ipconfig tried running prior to /net/etherU3 exists
This commit is contained in:
parent
de4aec9fbd
commit
1d64be1984
1 changed files with 3 additions and 0 deletions
|
@ -1,6 +1,9 @@
|
||||||
#!/bin/rc
|
#!/bin/rc
|
||||||
|
|
||||||
fn confignet{
|
fn confignet{
|
||||||
|
if(~ $#netwait 1)
|
||||||
|
sleep $netwait
|
||||||
|
|
||||||
must ip/ipconfig -p $*
|
must ip/ipconfig -p $*
|
||||||
if(~ $#fs 0)
|
if(~ $#fs 0)
|
||||||
fs=`{awk -F'=' '/fs=/{print $2; exit}' /net/ndb}
|
fs=`{awk -F'=' '/fs=/{print $2; exit}' /net/ndb}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue