bugfix: Radio0Path is unknonw WIFI doesn't start.

wifi detect  is called in /etc/init.d/boot before uci_apply_defaults is called.

Because of this if we don't have the data about the radio0path we need to remove the wifi config file first before calling wifi detect.
This commit is contained in:
Conrad Lara - KG6JEI 2015-05-16 11:32:29 -07:00
parent 89d7b589b0
commit 06a46e4d2a
1 changed files with 1 additions and 0 deletions

View File

@ -60,6 +60,7 @@ fi
if [ -z "$(uci -q get wireless.radio0.path)" ] if [ -z "$(uci -q get wireless.radio0.path)" ]
then then
mkdir -p /etc/aredn_include mkdir -p /etc/aredn_include
rm -f /etc/config/wireless
wifi detect|grep "option path"|head -n 1 > /etc/aredn_include/radio0path wifi detect|grep "option path"|head -n 1 > /etc/aredn_include/radio0path
wifi detect > /etc/config/wireless wifi detect > /etc/config/wireless
else else