aboutsummaryrefslogtreecommitdiffstats
path: root/testing/wifidog/wifidog.initd
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-05-03 06:19:04 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-05-03 06:19:04 +0000
commit6f1dc21bd4e8ae7ef0d7afce465b2bc15d0ffa07 (patch)
tree1f70b259fe7fb5c82f437c6b006284893cf4eb5a /testing/wifidog/wifidog.initd
parent66765c30ac7a9c9a560ab43d5618de820fb373c6 (diff)
downloadaports-6f1dc21bd4e8ae7ef0d7afce465b2bc15d0ffa07.tar.bz2
aports-6f1dc21bd4e8ae7ef0d7afce465b2bc15d0ffa07.tar.xz
testing/*: removed
We dont ship testing things in a stable release
Diffstat (limited to 'testing/wifidog/wifidog.initd')
-rwxr-xr-xtesting/wifidog/wifidog.initd39
1 files changed, 0 insertions, 39 deletions
diff --git a/testing/wifidog/wifidog.initd b/testing/wifidog/wifidog.initd
deleted file mode 100755
index c5e3b37f08..0000000000
--- a/testing/wifidog/wifidog.initd
+++ /dev/null
@@ -1,39 +0,0 @@
-#!/sbin/runscript
-# Copyright 2012 Nathan Angelacos for Alpine Linux
-# Distributed under the terms of the GNU General Public License v2
-
-SVCDIR=${SVCDIR:-/etc/wifidog}
-SVC=${SVCNAME#*.}
-if [ -n "${SVC}" ] && [ ${SVCNAME} != "wifidog" ]; then
- SVCPID="/var/run/wifidog.${SVC}.pid"
-else
- SVCPID="/var/run/wifidog.pid"
-fi
-SVCCONF="${SVCDIR}/${SVC}.conf"
-
-depend() {
- need net
- use dns
-}
-
-
-start() {
- ebegin "Starting ${SVCNAME}"
-
- start-stop-daemon --start --exec /usr/bin/wifidog -b -m --pidfile "${SVCPID}" \
- -- -f -s -c ${SVCCONF} ${CONF} 2&>1 >/dev/null
- if ! [ -d /proc/`cat ${SVCPID}` ]; then
- rm -f "${SVCPID}"
- eend 1
- return 1
- fi
- eend 0
-}
-
-stop() {
- ebegin "Stopping ${SVCNAME}"
- start-stop-daemon --stop --quiet \
- --exec /usr/sbin/wifidog --pidfile "${SVCPID}"
- eend $?
-}
-