1 #!/bin/sh /etc/rc.common
2 # Copyright (C) 2006-2011 OpenWrt.org
8 setup_switch
() { return 0; }
13 /sbin
/wifi detect
> /tmp
/wireless.tmp
14 [ -s /tmp
/wireless.tmp
] && {
15 cat /tmp
/wireless.tmp
>> /etc
/config
/wireless
17 rm -f /tmp
/wireless.tmp
18 grep -qs config
/etc
/config
/wireless
&& {
25 for ifc
in $interfaces; do
27 config_get proto
"$ifc" proto
30 config_get_bool auto
"$ifc" auto
1
32 type "coldplug_interface_$proto" >/dev
/null
&& [ "$auto" = 1 ] && \
33 coldplug_interface_
$proto "$ifc"
38 setup_switch
() { return 0; }
This page took 0.053291 seconds and 5 git commands to generate.