mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2026-01-27 17:37:18 +01:00
wifimngr: Debug
This commit is contained in:
parent
68d34bf1ec
commit
83428524ac
2 changed files with 27 additions and 0 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
22
wifimngr/files/usr/bin/wifi_opclass_trigger.sh
Executable file
22
wifimngr/files/usr/bin/wifi_opclass_trigger.sh
Executable 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
|
||||
|
||||
Loading…
Add table
Reference in a new issue