summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsources/target_skeleton/etc/init.d/S40network35
-rw-r--r--sources/target_skeleton/etc/network/interfaces4
2 files changed, 39 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 $?
+
diff --git a/sources/target_skeleton/etc/network/interfaces b/sources/target_skeleton/etc/network/interfaces
new file mode 100644
index 000000000..218b82cde
--- /dev/null
+++ b/sources/target_skeleton/etc/network/interfaces
@@ -0,0 +1,4 @@
+# Configure Loopback
+auto lo
+iface lo inet loopback
+