diff options
author | mbm <mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2006-01-12 19:10:07 +0000 |
---|---|---|
committer | mbm <mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2006-01-12 19:10:07 +0000 |
commit | 7ed55d66c9be5c15bf74497e76b3cc473b303960 (patch) | |
tree | cd0c3fc53cc885e8c36c78bddd0116160b11088f /openwrt/target/linux/package/base-files/files/aruba-2.6/etc/init.d | |
parent | 304926a835c68ff484f0c746da0dd87b2fc8f489 (diff) |
Merge aruba support
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@2940 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'openwrt/target/linux/package/base-files/files/aruba-2.6/etc/init.d')
-rwxr-xr-x | openwrt/target/linux/package/base-files/files/aruba-2.6/etc/init.d/S00aruba | 4 | ||||
-rwxr-xr-x | openwrt/target/linux/package/base-files/files/aruba-2.6/etc/init.d/S40network | 16 |
2 files changed, 20 insertions, 0 deletions
diff --git a/openwrt/target/linux/package/base-files/files/aruba-2.6/etc/init.d/S00aruba b/openwrt/target/linux/package/base-files/files/aruba-2.6/etc/init.d/S00aruba new file mode 100755 index 000000000..9836de423 --- /dev/null +++ b/openwrt/target/linux/package/base-files/files/aruba-2.6/etc/init.d/S00aruba @@ -0,0 +1,4 @@ +#!/bin/sh +mount none /proc -t proc +mount_root failsafe +mount -o remount,rw /dev/root / 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 index 000000000..df7c6b351 --- /dev/null +++ b/openwrt/target/linux/package/base-files/files/aruba-2.6/etc/init.d/S40network @@ -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 |