2011-10-21 01:47:49 +00:00
|
|
|
#!/bin/sh /etc/rc.common
|
|
|
|
START=40
|
|
|
|
STOP=90
|
|
|
|
|
|
|
|
start() {
|
|
|
|
setup_switch() { return 0; }
|
|
|
|
|
|
|
|
include /lib/network
|
|
|
|
setup_switch
|
|
|
|
|
2012-05-14 23:50:59 +00:00
|
|
|
ifup -a
|
2011-11-03 20:02:52 +00:00
|
|
|
grep -qs config /etc/config/wireless && {
|
|
|
|
/sbin/wifi up
|
|
|
|
}
|
2011-10-21 01:47:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
restart() {
|
|
|
|
start
|
|
|
|
}
|
|
|
|
|
|
|
|
stop() {
|
|
|
|
/sbin/ifdown -a
|
|
|
|
}
|