diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2007-02-15 15:11:34 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2007-02-15 15:11:34 +0000 |
commit | 2f67d9e2fe7bbec10e67bf7e52999c594c4d6400 (patch) | |
tree | 84e3428db35283defe8c6fa3446b65d8ae887693 /target/generic/target_busybox_skeleton/etc/init.d/S40network | |
parent | 0fed2766a40419cd325dbb8ec0ac29f96ccc1b83 (diff) |
- preparation for BR2_PACKAGE_BUSYBOX_SKELETON
"Use a minimal target skeleton for use with busybox's mdev et al"
Diffstat (limited to 'target/generic/target_busybox_skeleton/etc/init.d/S40network')
-rwxr-xr-x | target/generic/target_busybox_skeleton/etc/init.d/S40network | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/target/generic/target_busybox_skeleton/etc/init.d/S40network b/target/generic/target_busybox_skeleton/etc/init.d/S40network new file mode 100755 index 000000000..d835d9c72 --- /dev/null +++ b/target/generic/target_busybox_skeleton/etc/init.d/S40network @@ -0,0 +1,35 @@ +#!/bin/sh +# +# Start the network.... +# + +start() { + echo "Starting network..." + /sbin/ifup -a +} +stop() { + echo -n "Stopping network..." + /sbin/ifdown -a +} +restart() { + stop + start +} + +case "$1" in + start) + start + ;; + stop) + stop + ;; + restart|reload) + restart + ;; + *) + echo $"Usage: $0 {start|stop|restart}" + exit 1 +esac + +exit $? + |