I checked the trunk version of "wifi" and calling "wifi up" or just
"wifi" is the same. This means that this script can't enable
connection that have the wifi disabled at the config file. Also that
is impossible to use a default off on power up.
true .. that can only be achieved by toggling the uci config variables.
hotplug-radiobutton was never meant to switch the default. A router
should switch to a default on reboot. What if nobody is around to push
the button but wireless is needed but it was disabled before it was
rebooted?
I use the following script:
SNIP
So it iterates over every wifi-device at /etc/config/wireless and
disable/enable it.
So I think it's also generic for whatever you want.
it is ..
So the question is: is possible to have more than on wifi-device?
yes it is..
If so all solutions that I see have...more issues.
question is what do you want. A simple switch on/off of wireless
(meaning all wireless devices) or a more complicated configurable script
switching just some devices..
... best regards ede
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel