include /lib/network
setup_switch
- [ -e /etc/config/wireless ] || \
+ [ -s /etc/config/wireless ] || \
/sbin/wifi detect > /etc/config/wireless
/sbin/wifi up
}
}
restart() {
+ setup_switch() { return 0; }
+
+ include /lib/network
+ setup_switch
ifup -a
/sbin/wifi up
}