1 #!/bin/sh /etc/rc.common
2 # Copyright (C) 2006-2011 OpenWrt.org
8 setup_switch() { return 0; }
12 /sbin/wifi detect >> /etc/config/wireless
13 grep -qs config /etc/config/wireless && {
16 rm -f /etc/config/wireless
22 for ifc in $interfaces; do
24 config_get proto "$ifc" proto
27 config_get_bool auto "$ifc" auto 1
29 type "coldplug_interface_$proto" >/dev/null && [ "$auto" = 1 ] && \
30 coldplug_interface_$proto "$ifc"
35 setup_switch() { return 0; }