aboutsummaryrefslogtreecommitdiff
path: root/n35-skeleton/etc/init.d/S40network
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2011-12-20 11:39:47 +0100
committerLars-Dominik Braun <lars@6xq.net>2011-12-20 11:39:47 +0100
commit566be04e701c3b77101b841c0571d2e8fe7803cf (patch)
treec33862e9e3790003e593235c59d0a485cf12ccda /n35-skeleton/etc/init.d/S40network
parent9057bb23e2890e73a66667786351925f07db7271 (diff)
downloadbuildroot-n35-566be04e701c3b77101b841c0571d2e8fe7803cf.tar.gz
buildroot-n35-566be04e701c3b77101b841c0571d2e8fe7803cf.tar.bz2
buildroot-n35-566be04e701c3b77101b841c0571d2e8fe7803cf.zip
Added default fs skeleton
Diffstat (limited to 'n35-skeleton/etc/init.d/S40network')
-rwxr-xr-xn35-skeleton/etc/init.d/S40network25
1 files changed, 25 insertions, 0 deletions
diff --git a/n35-skeleton/etc/init.d/S40network b/n35-skeleton/etc/init.d/S40network
new file mode 100755
index 0000000..ad6d250
--- /dev/null
+++ b/n35-skeleton/etc/init.d/S40network
@@ -0,0 +1,25 @@
+#!/bin/sh
+#
+# Start the network....
+#
+
+case "$1" in
+ start)
+ echo "Starting network..."
+ /sbin/ifup -a
+ ;;
+ stop)
+ echo -n "Stopping network..."
+ /sbin/ifdown -a
+ ;;
+ restart|reload)
+ "$0" stop
+ "$0" start
+ ;;
+ *)
+ echo $"Usage: $0 {start|stop|restart}"
+ exit 1
+esac
+
+exit $?
+