X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/e6a04b383a9e5fe8279c58d0753e9d84f75e33ea..a1d70a909c8a1072bbe77dc9c011cf91f7fbd3b4:/root/etc/init.d/S40network 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