forked from Ivasoft/openwrt
base-files: also regenerate wifi config if existing config contains only whitespace
SVN-Revision: 20669
This commit is contained in:
@@ -9,9 +9,12 @@ boot() {
|
||||
|
||||
include /lib/network
|
||||
setup_switch
|
||||
[ -s /etc/config/wireless ] || \
|
||||
grep -qs config /etc/config/wireless && {
|
||||
/sbin/wifi up
|
||||
} || {
|
||||
rm -f /etc/config/wireless
|
||||
/sbin/wifi detect > /etc/config/wireless
|
||||
/sbin/wifi up
|
||||
}
|
||||
}
|
||||
|
||||
start() {
|
||||
|
||||
Reference in New Issue
Block a user