linuxrc: use ifconfig -a and check for eth in device name
authorMichael Prokop <mika@grml.org>
Fri, 17 Nov 2006 18:30:00 +0000 (19:30 +0100)
committerMichael Prokop <mika@grml.org>
Fri, 17 Nov 2006 18:30:00 +0000 (19:30 +0100)
linuxrc

diff --git a/linuxrc b/linuxrc
index e7b15c6..44cbcac 100755 (executable)
--- a/linuxrc
+++ b/linuxrc
@@ -549,7 +549,7 @@ if [ -n "$NFS" ]; then
   # loading additional modules
   modLoad sunrpc lockd af_packet nfs
 
-  for INTERFACE in `ifconfig | grep '^[a-z]' | sed 's/\ .*//'` ; do
+  for INTERFACE in `ifconfig -a | grep '^[eth]' | sed 's/\ .*//'` ; do
       log_begin_msg "Requesting network configuration using udhcp for ${INTERFACE}:" ; echo
       /static/udhcpc --interface="${INTERFACE}" --foreground --quit --script=/static/udhcp-config.sh
       # echo "press <enter> to start a system shell and configure your system"