]>
Commit | Line | Data |
---|---|---|
3818c432 | 1 | #!/bin/sh |
2 | # | |
0fd65b4a | 3 | # chkconfig: 2345 20 90 |
3818c432 | 4 | # |
0fd65b4a | 5 | # description: Starts and stops "trackpoint" - driver for trackpoint device |
6 | # | |
7 | # config: /etc/trackpoint/trackpoint.conf | |
3818c432 | 8 | |
9 | . /etc/rc.d/init.d/functions | |
10 | ||
11 | case $1 in | |
12 | start|restart|reload|force-reload) | |
f8844088 | 13 | show "Starting trackpoint service" |
3818c432 | 14 | busy |
15 | if [ -f /sys/devices/platform/i8042/serio0/press_to_select ]; then | |
16 | /etc/trackpoint/trackpoint.conf | |
17 | ok | |
18 | else | |
19 | fail | |
20 | fi | |
21 | ;; | |
22 | stop) | |
23 | exit 0 | |
24 | ;; | |
25 | *) | |
26 | msg_usage "$0 {start|stop|restart|reload|force-reload|status}" | |
27 | exit 3 | |
28 | ;; | |
29 | esac |