I created a script to disable the touchpad in my computer. It works ok when I run it in a terminal. I did some work to make it start at startup because I wanted the touchpad to be disabled permanently, but the script did not work at startup. The touchpad was still enabled after startup. This is my configuration:
root@debian:/etc# cat /etc/init.d/touchpadOff
#! /bin/sh
### BEGIN INIT INFO
# Provides: touchpadOff
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start daemon at boot time
# Description: Enable service provided by daemon.
### END INIT INFO
synclient TouchpadOff=1
root@debian:/etc# ls -l `find -name *touchpadOff`
-rwxr-xr-x 1 root root 345 gru 8 02:26 ./init.d/touchpadOff
lrwxrwxrwx 1 root root 21 gru 8 01:35 ./rc0.d/K01touchpadOff -> ../init.d/touchpadOff
lrwxrwxrwx 1 root root 21 gru 8 01:35 ./rc1.d/K01touchpadOff -> ../init.d/touchpadOff
lrwxrwxrwx 1 root root 21 gru 8 02:26 ./rc2.d/S03touchpadOff -> ../init.d/touchpadOff
lrwxrwxrwx 1 root root 21 gru 8 02:26 ./rc3.d/S03touchpadOff -> ../init.d/touchpadOff
lrwxrwxrwx 1 root root 21 gru 8 02:26 ./rc4.d/S03touchpadOff -> ../init.d/touchpadOff
lrwxrwxrwx 1 root root 21 gru 8 02:26 ./rc5.d/S03touchpadOff -> ../init.d/touchpadOff
lrwxrwxrwx 1 root root 21 gru 8 01:35 ./rc6.d/K01touchpadOff -> ../init.d/touchpadOff
root@debian:/etc#
How to make it work at startup in my Debian Jessie?