From 1d64be19849086dc1152ef952b1ab32612e2e94c Mon Sep 17 00:00:00 2001 From: Matthew Veety Date: Fri, 14 Feb 2014 22:05:25 -0500 Subject: 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 --- sys/src/9/boot/net.rc | 3 +++ 1 file changed, 3 insertions(+) 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} -- cgit v1.2.3