ppcrcd/trunk/conf.dir/usr/lib/ppcrcd/net-detect
sparky
cvs at pld-linux.org
Fri Mar 3 16:32:32 CET 2006
Author: sparky
Date: Fri Mar 3 16:32:28 2006
New Revision: 7076
Modified:
ppcrcd/trunk/conf.dir/usr/lib/ppcrcd/net-detect
Log:
- fixed udev-detected network configuration
Modified: ppcrcd/trunk/conf.dir/usr/lib/ppcrcd/net-detect
==============================================================================
--- ppcrcd/trunk/conf.dir/usr/lib/ppcrcd/net-detect (original)
+++ ppcrcd/trunk/conf.dir/usr/lib/ppcrcd/net-detect Fri Mar 3 16:32:28 2006
@@ -90,7 +90,12 @@
if ! egrep -q "^[[:space:]]*alias[[:space:]]*eth0" /etc/modprobe.conf; then
verbose 2 -B " +-Autodetecting network"
- if [[ -d /sys/class/net/eth* ]]; then
+ for WAIT in $(seq 5); do
+ # wait if modules wasn't loaded yet
+ [[ -d /sys/class/net/eth0 ]] && break
+ sleep 1
+ done
+ if [[ -d /sys/class/net/eth0 ]]; then
# if udev has detected something only setup ifcfg files
for NET in /sys/class/net/eth*; do
set_ifcfg ${NET##*/} dhcp no
More information about the pld-cvs-commit
mailing list