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
|