cgit: Added cgit 0.7.3-c502865 - A CGI for git written in C
[opensde-package-nopast.git] / base / mouseemu / mouseemu.init
blobed9c9d058fde5077e9a22d5459c3fb5aee4cb926
1 #!/bin/sh
2 # --- SDE-COPYRIGHT-NOTE-BEGIN ---
3 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
5 # Filename: package/.../mouseemu/mouseemu.init
6 # Copyright (C) 2004 - 2006 The T2 SDE Project
8 # More information can be found in the files COPYING and README.
10 # This program is free software; you can redistribute it and/or modify
11 # it under the terms of the GNU General Public License as published by
12 # the Free Software Foundation; version 2 of the License. A copy of the
13 # GNU General Public License can be found in the file COPYING.
14 # --- SDE-COPYRIGHT-NOTE-END ---
17 # Desc: mouse emulation daemon
18 # Runlevel: 25 rcX
21 [ -f /etc/conf/mouseemu ] && . /etc/conf/mouseemu
23 main_begin
25 block_begin(start, `Starting mouseemu.')
26 if [ ! -e /dev/uinput ] ; then
27 modprobe uinput
29 if [ -e /dev/uinput ] ; then
30 check(`D_prefix/sbin/mouseemu $MOUSEEMU_ARGS')
31 else
32 false
34 block_end
36 block_begin(stop, `Stopping mouseem.')
37 check(`killall -15 D_prefix/sbin/mouseemu')
38 block_end
40 main_end