wifimngr: Debug

This commit is contained in:
Amin Ben Romdhane 2026-01-19 11:06:38 +01:00
parent 68d34bf1ec
commit 83428524ac
2 changed files with 27 additions and 0 deletions

View file

@ -14,6 +14,11 @@ start_service() {
# procd_set_param stderr 1 #for debugging only
procd_set_param respawn
procd_close_instance
procd_open_instance wifi_opclass
procd_set_param command /bin/sh "/usr/bin/wifi_opclass_trigger.sh"
procd_set_param respawn
procd_close_instance
}
reload_service() {

View file

@ -0,0 +1,22 @@
#!/bin/sh
LOG=/tmp/wifi_opclass_preferences.log
COUNT=0
MAX=20
echo "=== wifi opclass_preferences start: $(date) ===" >> "$LOG"
while [ "$COUNT" -lt "$MAX" ]; do
echo "radio phy0 opclass_preferences[$COUNT]:" >> "$LOG"
ubus call wifi.radio.phy0 opclass_preferences >> "$LOG"
echo "radio phy1 opclass_preferences[$COUNT]:" >> "$LOG"
ubus call wifi.radio.phy1 opclass_preferences >> "$LOG"
COUNT=$((COUNT + 1))
sleep 3
done
echo "=== wifi opclass_preferences end: $(date) ===" >> "$LOG"
exit 0