b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame^] | 1 | #!/bin/sh /etc/rc.common |
| 2 | # Copyright (C) 2006 OpenWrt.org |
| 3 | START=65 |
| 4 | |
| 5 | USE_PROCD=1 |
| 6 | |
| 7 | extra_command "status" "Print the status of the service" |
| 8 | |
| 9 | start_service() { |
| 10 | procd_open_instance |
| 11 | # -s: log to syslog |
| 12 | # -f: run in foreground |
| 13 | procd_set_param command /usr/bin/wifidog -s -f |
| 14 | procd_set_param respawn # respawn automatically if something died |
| 15 | procd_set_param file /etc/wifidog.conf |
| 16 | procd_close_instance |
| 17 | } |
| 18 | |
| 19 | status_service() { |
| 20 | /usr/bin/wdctl status |
| 21 | } |