diff options
Diffstat (limited to 'base')
-rw-r--r-- | base/aaabasicfs/Pkgfile | 2 | ||||
-rwxr-xr-x | base/aaabasicfs/network | 14 |
2 files changed, 13 insertions, 3 deletions
diff --git a/base/aaabasicfs/Pkgfile b/base/aaabasicfs/Pkgfile index f310f9dad..c21e948e6 100644 --- a/base/aaabasicfs/Pkgfile +++ b/base/aaabasicfs/Pkgfile @@ -6,7 +6,7 @@ name=aaabasicfs version=2010 -release=beta-3 +release=beta-4 scriptsversion=lfs-bootscripts-20100124 source=( http://www.linuxfromscratch.org/lfs/downloads/development/$scriptsversion.tar.bz2\ hosts console fstab inittab message inputrc network \ 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 |