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:
Michael Haas
2015-04-17 11:57:00 +02:00
committed by Etienne CHAMPETIER
parent c3a822ef3d
commit 17a51b7b86
2 changed files with 125 additions and 0 deletions
+22
View File
@@ -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
}