2004-05-08 06:41:36 +08:00
|
|
|
#!/bin/sh
|
|
|
|
. /etc/functions.sh
|
|
|
|
case "$1" in
|
|
|
|
start|restart)
|
|
|
|
ifup lan
|
|
|
|
ifup wan
|
|
|
|
ifup wifi
|
|
|
|
wifi up
|
2004-06-06 13:25:39 +08:00
|
|
|
|
|
|
|
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
|
2004-05-08 06:41:36 +08:00
|
|
|
;;
|
|
|
|
esac
|