File: touchpad

package info (click to toggle)
tpconfig 3.1.3-9.2
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 596 kB
  • ctags: 185
  • sloc: ansic: 1,720; sh: 455; makefile: 82
file content (45 lines) | stat: -rwxr-xr-x 683 bytes parent folder | download | duplicates (6)
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
45
#!/bin/bash
#
# touchpad  Configure touchpad
# chkconfig: 35 84 84
# description: Startup script to disable touchpad tapping \
#              for Synaptics or ALPS touchpads.
#
# $Log$
#
# $Id$
#
#

# Source function library.
. /etc/init.d/functions


case "$1" in
start) 
       echo ""
       echo -n "Turning off Touch-Pad 'tapping' "

       if [ -f /usr/bin/tpconfig ]; then
         /usr/bin/tpconfig --tapmode=0
         if [ $? ]; then
           echo_success
         else
           echo_failure
         fi
       else
         echo_failure
       fi
       ;;
        
stop) 
      echo_success
      ;;
      

restart) 
      echo_success
      ;;
        
esac
exit 0