problem with personal boot's script

Forum rules
Before you post please read this

problem with personal boot's script

Postby kko on Wed Sep 04, 2013 6:43 am

Hi, everyone,

i have a problem with a simple script make to delete the psmouse mod from my Laptop after boot. (Hd problem with Trackball and Touchpad in Lenovo Laptop)

the script is very simple :

#!/bin/sh

### BEGIN INIT INFO
# Provides: elimouse.sh
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Stop psmouse
# Description: Stop psmouse dal laptop lenovo.
### END INIT INFO

rmmod psmouse

-------------------------------------

I put it in /etc/init.d,

then i use the command to allow the execution :

sudo chmod a+x /etc/init.d/elimouse.sh

and then :

sudo update-rc.d elimouse.sh defaults


but it don't works!!

do you have some good advice? do you notice some error?
kko
Level 1
Level 1
 
Posts: 2
Joined: Wed Sep 04, 2013 6:31 am

Linux Mint is funded by ads and donations.
 

Re: problem with personal boot's script

Postby Otyugh on Tue Oct 01, 2013 8:50 pm

Consider doing this ?
Code: Select all
rmmod psmouse 2> /tmp/error.log  #redirect the errors in a file.


Maybe using the verbose (-v) of rmmod could provide more info too.
Otyugh
Level 3
Level 3
 
Posts: 125
Joined: Wed Jan 02, 2013 9:52 pm


Return to Scripts & Bash

Who is online

Users browsing this forum: No registered users and 2 guests