summaryrefslogtreecommitdiffstats
path: root/root/etc/init.d/S40network
diff options
context:
space:
mode:
Diffstat (limited to 'root/etc/init.d/S40network')
-rwxr-xr-xroot/etc/init.d/S40network5
1 files changed, 5 insertions, 0 deletions
diff --git a/root/etc/init.d/S40network b/root/etc/init.d/S40network
index 4264705dc..5a6ca725b 100755
--- a/root/etc/init.d/S40network
+++ b/root/etc/init.d/S40network
@@ -6,5 +6,10 @@ case "$1" in
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