Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
RC-Script help (Solved)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
JustChaos
n00b
n00b


Joined: 12 Oct 2002
Posts: 6

PostPosted: Mon Nov 04, 2002 4:31 am    Post subject: RC-Script help (Solved) Reply with quote

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
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20067

PostPosted: Mon Nov 04, 2002 4:41 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum