Developing lightweight computation at the DSG edge

Commit dcd0b810 authored by Roger Pueyo Centelles's avatar Roger Pueyo Centelles
Browse files

[qmp-system] Improve wifihealth script

iw won't report a channel if the radio interface has been put down.
Reload it also in these cases.
Signed-off-by: default avatarRoger Pueyo Centelles <>
parent ecd19666
......@@ -35,8 +35,9 @@ if [ $lastdev ]; then
# Check that channel configurations in /etc/config/qmp and /etc/config/wireless match
if [ "$qmpchannelnum" == "$wifichannelnum" ]; then
# If the channel configured in /etc/config/wireless and the one reported by iw differ, reset the wifi
if [ $wifichannelnum -ne $iwchannel ]; then
# If iw does not report a channel, or if it reports a channel different to the one
# configured in /etc/config/wireless, reset the wifi
if [ ! $iwchannel ] || [ $wifichannelnum -ne $iwchannel ]; then
exit 0
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment