summaryrefslogtreecommitdiff
path: root/sys/src/9/boot
diff options
context:
space:
mode:
authorMatthew Veety <mveety@gmail.com>2014-02-14 22:05:25 -0500
committerMatthew Veety <mveety@gmail.com>2014-02-14 22:05:25 -0500
commit1d64be19849086dc1152ef952b1ab32612e2e94c (patch)
treea4d6adef870f29f985c6560cd159c52ec8e12be7 /sys/src/9/boot
parentde4aec9fbd6ef88f2e2b61a031d5e04cc2aacccb (diff)
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
Diffstat (limited to 'sys/src/9/boot')
-rwxr-xr-xsys/src/9/boot/net.rc3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/src/9/boot/net.rc b/sys/src/9/boot/net.rc
index 461564747..3809d6581 100755
--- a/sys/src/9/boot/net.rc
+++ b/sys/src/9/boot/net.rc
@@ -1,6 +1,9 @@
#!/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}