File: mouseemu.init.gentoo

package info (click to toggle)
mouseemu 0.15-9
  • links: PTS, VCS
  • area: main
  • in suites: squeeze, wheezy
  • size: 216 kB
  • ctags: 73
  • sloc: sh: 1,101; ansic: 576; makefile: 65
file content (31 lines) | stat: -rwxr-xr-x 814 bytes parent folder | download | duplicates (5)
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
#!/sbin/runscript
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2

#MID_CLICK="-middle 0 68"         #F10 with no modifier
#RIGHT_CLICK="-right 0 125"       #Command with no modifier
#SCROLL="-scroll 56"              #Option 
#TYPING_BLOCK="-typing-block 300" #block mouse for 300ms after a keypress

depend() {
	use logger
}

start() {
	ebegin "Starting mouseemu"
	# Source configuration file /etc/mouseemu.conf
	if [ -f /etc/mouseemu.conf ] ; then
	       . /etc/mouseemu.conf
	fi
	start-stop-daemon --start --quiet \
		--exec /usr/sbin/mouseemu -- \
			$MID_CLICK $RIGHT_CLICK $SCROLL $TYPING_BLOCK > /var/log/mouseemu.log

	eend $?
}

stop() {
	ebegin "Stopping mouseemu"
	start-stop-daemon --stop --quiet --exec /usr/sbin/mouseemu
	eend $?
}