View previous topic :: View next topic |
Author |
Message |
JustChaos n00b
Joined: 12 Oct 2002 Posts: 6
|
Posted: Mon Nov 04, 2002 4:31 am Post subject: RC-Script help (Solved) |
|
|
I'm trying to disable tap-to-click on my touchpad, and apparently the code below will disable it. The file is /etc/init.d/touchpad. I can get it to run when I boot by running "rc-update add touchpad boot". However, the output is really ugly and I get error messages. It also appears as if it tries to run the command twice. How can I make this into a valid rc-script for Gentoo?
Code: | #!/bin/sh
# touchpad
# description: Startup script to disable touchpad tapping
# For Synaptics or ALPS touchpads.
#
# $Log$
#
# $Id$
#
#
test -r /etc/rc.d/init.d/functions && . /etc/rc.d/init.d/functions
echo ""
echo -n "Turning off Touch-Pad 'tapping' "
if [ -f /usr/bin/tpconfig ]; then
/usr/bin/tpconfig --tapmode=0
if [ $? ]; then
echo_failure
else
echo_success
fi
else
echo_failure
fi
echo ""
exit 0
|
Last edited by JustChaos on Mon Nov 04, 2002 8:43 am; edited 1 time in total |
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20067
|
Posted: Mon Nov 04, 2002 4:41 am Post subject: |
|
|
You might want to check the rc-script guide. Doesn't look like yours would be too dificult to convert. _________________ Quis separabit? Quo animo? |
|
Back to top |
|
|
|