summaryrefslogtreecommitdiff
path: root/sources/target_skeleton/etc/init.d/S40network
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2003-06-20 20:18:25 +0000
committerEric Andersen <andersen@codepoet.org>2003-06-20 20:18:25 +0000
commit80e368b2b874b522218f27a7e935ed106397babc (patch)
tree4072bb7beb6f153b41cf011d9bde496337f3db6c /sources/target_skeleton/etc/init.d/S40network
parent7c9afbdbdca4c51230d3a69f339ef18658ecebab (diff)
Start networking on boot, and setup a default set of network
interfaces (just loopback for now).
Diffstat (limited to 'sources/target_skeleton/etc/init.d/S40network')
-rwxr-xr-xsources/target_skeleton/etc/init.d/S40network35
1 files changed, 35 insertions, 0 deletions
diff --git a/sources/target_skeleton/etc/init.d/S40network b/sources/target_skeleton/etc/init.d/S40network
new file mode 100755
index 000000000..d835d9c72
--- /dev/null
+++ b/sources/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 $?
+