summaryrefslogtreecommitdiffstats
path: root/root
diff options
context:
space:
mode:
Diffstat (limited to 'root')
-rwxr-xr-xroot/etc/networking.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/root/etc/networking.sh b/root/etc/networking.sh
index b857a86c0..c1e6742e3 100755
--- a/root/etc/networking.sh
+++ b/root/etc/networking.sh
@@ -161,3 +161,12 @@ lan_proto="static"
configure lan
configure wifi
configure wan
+
+for route in $(nvram_get static_route); do {
+ ip=${route%%:*} route=${route#*:}
+ netmask=${route%%:*} route=${route#*:}
+ gateway=${route%%:*} route=${route#*:}
+ metric=${route%%:*} route=${route#*:}
+ if=${route%%:*}
+ $DEBUG route add -net $ip netmask $netmask gw $gateway metric $metric dev $if
+} done