shithub: riscv

Download patch

ref: 1d64be19849086dc1152ef952b1ab32612e2e94c
parent: de4aec9fbd6ef88f2e2b61a031d5e04cc2aacccb
author: Matthew Veety <mveety@gmail.com>
date: Fri Feb 14 17:05:25 EST 2014

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

--- 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}