diff options
Diffstat (limited to 'obsolete-buildroot/sources/openwrt/root/etc/init.d/S40network')
-rwxr-xr-x | obsolete-buildroot/sources/openwrt/root/etc/init.d/S40network | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/obsolete-buildroot/sources/openwrt/root/etc/init.d/S40network b/obsolete-buildroot/sources/openwrt/root/etc/init.d/S40network new file mode 100755 index 000000000..5a6ca725b --- /dev/null +++ b/obsolete-buildroot/sources/openwrt/root/etc/init.d/S40network @@ -0,0 +1,15 @@ +#!/bin/sh +. /etc/functions.sh +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')" + route add -net $1 netmask $2 gw $3 metric $4 dev $5 + } done + ;; +esac |