Merge aruba support
[openwrt/svn-archive/archive.git] / openwrt / target / linux / package / base-files / files / aruba-2.6 / etc / init.d / S40network
diff --git a/openwrt/target/linux/package/base-files/files/aruba-2.6/etc/init.d/S40network b/openwrt/target/linux/package/base-files/files/aruba-2.6/etc/init.d/S40network
new file mode 100755 (executable)
index 0000000..df7c6b3
--- /dev/null
@@ -0,0 +1,16 @@
+#!/bin/sh
+. /etc/functions.sh
+[ "$FAILSAFE" != "true" -a -e /etc/config/network ] && . /etc/config/network
+case "$1" in
+  start|restart)
+    ifup lan
+    ifup wan
+    ifup wifi
+    wifi up
+
+    for route in $(nvram get static_route); do {
+      eval "set $(echo $route | sed 's/:/ /g')"
+      $DEBUG route add -net $1 netmask $2 gw $3 metric $4 dev $5
+    } done
+    ;;
+esac