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
|
2010-01-30 20:17:48 +02:00
|
|
|
STOP=90
|
2007-05-10 13:07:38 +03:00
|
|
|
|
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
|
2010-04-03 16:44:38 +03:00
|
|
|
grep -qs config /etc/config/wireless && {
|
|
|
|
/sbin/wifi up
|
|
|
|
} || {
|
|
|
|
rm -f /etc/config/wireless
|
2006-10-15 18:27:34 +03:00
|
|
|
/sbin/wifi detect > /etc/config/wireless
|
2010-04-03 16:44:38 +03:00
|
|
|
}
|
[backfire] merge ppp, pppoe, pptp and 3g fixes
r21283, r21284, r21285, r21287, r21302, r21303, r21341,
r21361, r21379, r21383, r21386, r21387, r21388, r21389,
r21390, r21391, r21392, r21393, r21426, r21556, r21563
git-svn-id: svn://svn.openwrt.org/openwrt/branches/backfire@21564 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-05-24 20:06:58 +03:00
|
|
|
|
|
|
|
scan_interfaces
|
|
|
|
|
|
|
|
local ifc
|
|
|
|
for ifc in $interfaces; do
|
|
|
|
local proto
|
|
|
|
config_get proto "$ifc" proto
|
|
|
|
|
|
|
|
type "coldplug_interface_$proto" >/dev/null && \
|
|
|
|
coldplug_interface_$proto "$ifc"
|
|
|
|
done
|
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() {
|
2008-04-15 19:29:49 +03:00
|
|
|
setup_switch() { return 0; }
|
|
|
|
|
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
|
|
|
|
}
|
2010-03-15 16:02:49 +02:00
|
|
|
|
|
|
|
restart() {
|
|
|
|
start
|
|
|
|
}
|