diff options
author | tnut <thierryn1 at hispeed dot ch> | 2010-05-09 17:24:23 +0200 |
---|---|---|
committer | tnut <thierryn1 at hispeed dot ch> | 2010-05-09 17:24:23 +0200 |
commit | 4d0283221194079552fee6628352fb3824caff5c (patch) | |
tree | 3b61f88097653f06395faffc6843201d21adc2c7 /base/aaabasicfs/network | |
parent | 25b3b763e5f74b0336c489856a14bd047ad98a6c (diff) | |
download | nutyx-extra-4d0283221194079552fee6628352fb3824caff5c.tar.gz nutyx-extra-4d0283221194079552fee6628352fb3824caff5c.tar.bz2 nutyx-extra-4d0283221194079552fee6628352fb3824caff5c.tar.xz nutyx-extra-4d0283221194079552fee6628352fb3824caff5c.zip |
maj aaabasicfs#2010-beta4, script network amélioré
Diffstat (limited to 'base/aaabasicfs/network')
-rwxr-xr-x | base/aaabasicfs/network | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/base/aaabasicfs/network b/base/aaabasicfs/network index 411f85b43..b88a42111 100755 --- a/base/aaabasicfs/network +++ b/base/aaabasicfs/network @@ -6,14 +6,24 @@ . /etc/sysconfig/rc . $rc_functions - +let TIME=20 case "$1" in start) if [ -f /usr/share/wicd/daemon/wicd-daemon.py ]; then boot_mesg "Starting the wicd Daemon..." loadproc /usr/share/wicd/daemon/wicd-daemon.py if grep -v ^# /etc/fstab | grep _netdev > /dev/null; then - while ! grep "nameserver" /etc/resolv.conf ; do sleep 1;done + while ! grep "nameserver" /etc/resolv.conf ; + do + sleep 1 + echo -n . + let TIME=$TIME-1 + if [ $TIME -lt 1 ]; then + boot_mesg "Time out" + echo_failure + exit 1 + fi + done boot_mesg "Network successfully configured..." echo_ok fi |