blob: 67dc29a3f8f8df3e77806c5ac4647a72090bd26c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#!/sbin/runscript
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-misc/actkbd/files/actkbd.initd,v 1.1 2013/03/14 19:50:09 scarabeus Exp $
checkconfig() {
if [ ! -f ${CONFIG} ] ; then
eerror "Config file \"${CONFIG}\" does not exist. Create it prior launching the daemon."
return 1
fi
if [ ! -c ${EVENT_DEVICE} ] ; then
eerror "Device \"${EVENT_DEVICE}\" is not valid pointer to input provider."
return 1
fi
}
depend() {
before acpid
}
start() {
checkconfig || return 1
ebegin "Starting actkbd"
start-stop-daemon --start --quiet --pidfile ${PIDFILE} --exec /usr/bin/actkbd -- -c "${CONFIG}" -D -q -x -l -p "${PIDFILE}" -d "${EVENT_DEVICE}"
eend $?
}
stop() {
ebegin "Stopping actkbd"
start-stop-daemon --stop --quiet --pidfile ${PIDFILE} --exec /usr/bin/actkbd
eend $?
}
|