blob: 4d864a0a8161efb7c721cc78f693970793a8e0c6 [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001#!/bin/sh /etc/rc.common
2# Copyright (C) 2006 OpenWrt.org
3START=65
4
5USE_PROCD=1
6
7extra_command "status" "Print the status of the service"
8
9start_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
19status_service() {
20 /usr/bin/wdctl status
21}