mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
wifidog: Bring back Wifidog at 1.2.1
This commit brings back Wifidog from the oldpackages repository. Changes: * Wifidog version 1.2.1 * Add wifidog-tls package * Init script uses procd Signed-off-by: Michael Haas <haas@computerlinguist.org>
This commit is contained in:
committed by
Etienne CHAMPETIER
parent
c3a822ef3d
commit
17a51b7b86
@@ -0,0 +1,22 @@
|
||||
#!/bin/sh /etc/rc.common
|
||||
# Copyright (C) 2006 OpenWrt.org
|
||||
START=65
|
||||
|
||||
USE_PROCD=1
|
||||
|
||||
EXTRA_COMMANDS="status"
|
||||
EXTRA_HELP=" 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() {
|
||||
/usr/bin/wdctl status
|
||||
}
|
||||
Reference in New Issue
Block a user