thanks. and why do you even check and not just set them?
still, the script would be of interest
I wrote now this:
#!/bin/sh
mesh_fwding=$(iw dev wlan0 get mesh_param mesh_fwding)
mesh_gate_announcements=$(iw dev wlan0 get mesh_param mesh_gate_announcements)
mesh_rssi_threshold=$(iw dev wlan0 get mesh_param mesh_rssi_threshold)
echo "the current forwarding is: $mesh_fwding"
echo "the current gate announcements is: $mesh_gate_announcements"
echo "the current rssi threshold is: $mesh_rssi_threshold"
if [ $mesh_fwding == "0" ]; then
iw dev wlan0 set mesh_param mesh_fwding '1'
echo "forwarding set"
else
echo "forwarding already set"
fi
if [ $mesh_gate_announcements == "0" ]; then
iw dev wlan0 set mesh_param mesh_gate_announcements '1'
echo "announcements set"
else
echo "announcements already set"
fi
if [ "$mesh_rssi_threshold" != "-80 dBm" ]; then
iw dev wlan0 set mesh_param mesh_rssi_threshold '-80'
echo "threshold set"
else
echo "threshold already set"
fi
I guess yours is similar. I then put this on the scheduled tasks to run it every 5min:
5 * * * * /root/mesh_parameter.sh
so far I only have this set on the mesh nodes, not the master. But I guess it would be a good idea there as well?