File: keytouch.init

package info (click to toggle)
keytouch 2.2.2-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 4,212 kB
  • ctags: 1,399
  • sloc: ansic: 9,195; sh: 3,630; makefile: 399
file content (44 lines) | stat: -rw-r--r-- 1,152 bytes parent folder | download
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
33
34
35
36
37
38
39
40
41
42
43
44
#!/bin/sh
# keytouch - a program to configure the extra function keys of the keyboard
### BEGIN INIT INFO
# Provides:          keytouch
# Required-Start:    $local_fs $remote_fs
# Required-Stop:     $local_fs $remote_fs
# Should-Start:      
# Should-Stop:       
# Default-Start:     2
# Default-Stop:      0 6
# Short-Description: Initialize extra function keys in multimedia keyboards
# Description:       Initializes kernel keymappings for multimedia keyboard's
#                    extra function keys. This mappings are used by the keytouch
#                    daemon inside an X session to assign actions to those keys.
### END INIT INFO

PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
DAEMON=/usr/bin/keytouch-init
KEYBOARD_FILE=/etc/keytouch/current_keyboard.xml
NAME=keytouch-init
DESC=keytouch

set -e

test -x $DAEMON || exit 0
test -f $KEYBOARD_FILE || exit 0

case "$1" in
  start|restart|force-reload)
	echo -n "Initializing $DESC: "
	$DAEMON
	echo "done."
	;;
  stop|status)
        echo "Nothing to do."
	;;
  *)
	N=/etc/init.d/$NAME
	echo "Usage: $N {start|stop|restart|force-reload}" >&2
	exit 1
	;;
esac

exit 0