summaryrefslogtreecommitdiffstats
path: root/target/generic/target_skeleton/etc/init.d/S40network
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2005-02-17 17:17:48 +0000
committerEric Andersen <andersen@codepoet.org>2005-02-17 17:17:48 +0000
commit2b7460e3623308cb7d7b548b4d1340dcb024eabe (patch)
tree49ad0e316c518c705155f6af97cb92bbf9f377f7 /target/generic/target_skeleton/etc/init.d/S40network
parente58927e0e4423cef8bd0fef72a9fd4fb3d8c860b (diff)
downloadbuildroot-novena-2b7460e3623308cb7d7b548b4d1340dcb024eabe.tar.gz
buildroot-novena-2b7460e3623308cb7d7b548b4d1340dcb024eabe.zip
Move stuff around
Diffstat (limited to 'target/generic/target_skeleton/etc/init.d/S40network')
-rwxr-xr-xtarget/generic/target_skeleton/etc/init.d/S40network35
1 files changed, 35 insertions, 0 deletions
diff --git a/target/generic/target_skeleton/etc/init.d/S40network b/target/generic/target_skeleton/etc/init.d/S40network
new file mode 100755
index 000000000..d835d9c72
--- /dev/null
+++ b/target/generic/target_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 $?
+