Dash:
[t2.git] / package / base / mouseemu / mouseemu.init
blob447f56fb81648d092763d8f9afc42a7f00a79a6b
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/mouseemu/mouseemu.init
3 # Copyright (C) 2004 - 2021 The T2 SDE Project
4
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
7
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License version 2.
10 # --- T2-COPYRIGHT-NOTE-END ---
13 # Desc: mouse emulation daemon
14 # Runlevel: 25 rcX
17 [ -f /etc/conf/mouseemu ] && . /etc/conf/mouseemu
19 main_begin
21     block_begin(start, `Starting mouseemu')
22         if [ ! -e /dev/uinput ] ; then
23                 modprobe uinput
24         fi
25         if [ -e /dev/uinput ] ; then
26                 check(`D_prefix/sbin/mouseemu $MOUSEEMU_ARGS')
27         else
28                 false
29         fi
30     block_end
32     block_begin(stop, `Stopping mouseem')
33         check(`killall D_prefix/sbin/mouseemu')
34     block_end
36 main_end