summaryrefslogtreecommitdiffstats
path: root/base/aaabasicfs/network
diff options
context:
space:
mode:
authortnut <thierryn1 at hispeed dot ch>2010-05-08 21:42:32 +0200
committertnut <thierryn1 at hispeed dot ch>2010-05-08 21:42:32 +0200
commit6d0a2726a2d82e94fc0830f5c42bfbeb66648f0e (patch)
tree3f57b03064099f5e0e9d956c22b6303f9d2426f1 /base/aaabasicfs/network
parent81e72091f5433b668b230b90f398a39487224fb4 (diff)
downloadnutyx-pakxe-6d0a2726a2d82e94fc0830f5c42bfbeb66648f0e.tar.gz
nutyx-pakxe-6d0a2726a2d82e94fc0830f5c42bfbeb66648f0e.tar.bz2
nutyx-pakxe-6d0a2726a2d82e94fc0830f5c42bfbeb66648f0e.tar.xz
nutyx-pakxe-6d0a2726a2d82e94fc0830f5c42bfbeb66648f0e.zip
maj aaabasicfs#2010-beta-3
Diffstat (limited to 'base/aaabasicfs/network')
-rwxr-xr-x[-rw-r--r--]base/aaabasicfs/network46
1 files changed, 45 insertions, 1 deletions
diff --git a/base/aaabasicfs/network b/base/aaabasicfs/network
index 199c848f3..411f85b43 100644..100755
--- a/base/aaabasicfs/network
+++ b/base/aaabasicfs/network
@@ -1 +1,45 @@
-HOSTNAME=nutyx
+#!/bin/sh
+# Begin $rc_base/init.d/network
+
+# Based on sysklogd script from LFS-3.1 and earlier.
+# Rewritten by thierryn1@hispeed.ch
+
+. /etc/sysconfig/rc
+. $rc_functions
+
+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
+ boot_mesg "Network successfully configured..."
+ echo_ok
+ fi
+
+ else
+ if [ -f /etc/rc.d/init.d/iplink ]; then
+ /etc/rc.d/init.d/iplink start
+ fi
+ fi
+ ;;
+
+ stop)
+ if [ -f /usr/share/wicd/daemon/wicd-daemon.py ]; then
+ boot_mesg "Stopping the wicd Daemon..."
+ loadproc /usr/share/wicd/daemon/wicd-daemon.py --kill
+ else
+ if [ -f /etc/rc.d/init.d/iplink ]; then
+ /etc/rc.d/init.d/iplink stop
+ fi
+ fi
+ ;;
+
+ *)
+ echo "Usage: $0 {start|stop}"
+ exit 1
+ ;;
+esac
+
+# End $rc_base/init.d/network