2004-08-12 05:47:00 +00:00
|
|
|
#!/bin/sh
|
|
|
|
. /etc/functions.sh
|
|
|
|
case "$1" in
|
|
|
|
start|restart)
|
|
|
|
ifup lan
|
|
|
|
ifup wan
|
|
|
|
ifup wifi
|
|
|
|
wifi up
|
|
|
|
|
2004-09-07 05:54:07 +00:00
|
|
|
for route in $(nvram get static_route); do {
|
2004-08-12 05:47:00 +00:00
|
|
|
eval "set $(echo $route | sed 's/:/ /g')"
|
2004-09-07 05:54:07 +00:00
|
|
|
$DEBUG route add -net $1 netmask $2 gw $3 metric $4 dev $5
|
2004-08-12 05:47:00 +00:00
|
|
|
} done
|
|
|
|
;;
|
|
|
|
esac
|