mirror of
https://git.openwrt.org/feed/packages.git
synced 2024-06-17 12:53:54 +02:00
d561ea555f
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
22 lines
472 B
Bash
22 lines
472 B
Bash
#!/bin/sh /etc/rc.common
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
START=65
|
|
|
|
USE_PROCD=1
|
|
|
|
extra_command "status" "Print the status of the service"
|
|
|
|
start_service() {
|
|
procd_open_instance
|
|
# -s: log to syslog
|
|
# -f: run in foreground
|
|
procd_set_param command /usr/bin/wifidog -s -f
|
|
procd_set_param respawn # respawn automatically if something died
|
|
procd_set_param file /etc/wifidog.conf
|
|
procd_close_instance
|
|
}
|
|
|
|
status_service() {
|
|
/usr/bin/wdctl status
|
|
}
|