mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-10-29 17:42:41 +00:00
28 lines
507 B
Bash
Executable File
28 lines
507 B
Bash
Executable File
#!/bin/sh /etc/rc.common
|
|
|
|
START=99
|
|
STOP=01
|
|
|
|
USE_PROCD=1
|
|
|
|
start_service() {
|
|
[ -e "/tmp/rrm_timestamp" ] && rm -rf /tmp/rrm_timestamp
|
|
[ -e "/tmp/rrm_chan_switch" ] && rm -rf /tmp/rrm_chan_switch
|
|
rm -rf /tmp/threshold_breach_count*
|
|
rm -rf /tmp/fixed_channel*
|
|
rm -rf /tmp/chanutil_phy*
|
|
|
|
procd_open_instance
|
|
procd_set_param command /usr/bin/rrmd.uc
|
|
procd_set_param respawn 3600 5 0
|
|
procd_close_instance
|
|
}
|
|
|
|
service_triggers() {
|
|
procd_add_reload_trigger rrm
|
|
}
|
|
|
|
reload_service() {
|
|
ubus call rrm reload
|
|
}
|