2006-10-04 23:05:48 +03:00
|
|
|
#!/bin/sh /etc/rc.common
|
2006-08-02 02:19:54 +03:00
|
|
|
# Copyright (C) 2006 OpenWrt.org
|
2006-07-30 06:09:09 +03:00
|
|
|
|
2006-10-16 00:03:30 +03:00
|
|
|
START=40
|
2007-05-10 13:07:38 +03:00
|
|
|
STOP=40
|
|
|
|
|
2007-03-02 15:21:33 +02:00
|
|
|
boot() {
|
2006-10-04 23:05:48 +03:00
|
|
|
setup_switch() { return 0; }
|
|
|
|
|
|
|
|
include /lib/network
|
|
|
|
setup_switch
|
2007-07-25 01:10:10 +03:00
|
|
|
[ -s /etc/config/wireless ] || \
|
2006-10-15 18:27:34 +03:00
|
|
|
/sbin/wifi detect > /etc/config/wireless
|
|
|
|
/sbin/wifi up
|
2006-10-04 23:05:48 +03:00
|
|
|
}
|
2006-07-30 06:09:09 +03:00
|
|
|
|
2007-03-02 15:21:33 +02:00
|
|
|
start() {
|
|
|
|
ifup -a
|
|
|
|
/sbin/wifi up
|
|
|
|
}
|
|
|
|
|
|
|
|
restart() {
|
2008-04-12 17:57:47 +03:00
|
|
|
include /lib/network
|
2008-03-04 17:50:41 +02:00
|
|
|
setup_switch
|
2007-03-02 15:21:33 +02:00
|
|
|
ifup -a
|
|
|
|
/sbin/wifi up
|
|
|
|
}
|
|
|
|
|
|
|
|
stop() {
|
|
|
|
ifdown -a
|
|
|
|
}
|