1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-23 23:46:16 +02:00

[package] netifd: prevent error in ifup if no /etc/config/wireless exists, properly handle wifi-iface sections which are part of multiple networks

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33425 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
jow 2012-09-15 12:50:55 +00:00
parent 9a7bc8a8b5
commit 3619dbb117

View File

@ -50,7 +50,7 @@ else
if_call "network.interface.$1"
fi
if [ -n "$setup_wifi" ] && grep -q config /etc/config/wireless; then
if [ -n "$setup_wifi" ] && grep -sq config /etc/config/wireless; then
. /lib/functions.sh
find_related_radios() {
@ -58,9 +58,13 @@ if [ -n "$setup_wifi" ] && grep -q config /etc/config/wireless; then
config_get wdev "$1" device
config_get wnet "$1" network
if [ -n "$wdev" ] && [ "$wnet" = "$network" ]; then
if [ -n "$wdev" ]; then
for wnet in $wnet; do
if [ "$wnet" = "$network" ]; then
append radio_devs "$wdev" "$N"
fi
done
fi
}
local radio_devs