insserv: Script <SCRIPT_NAME> is broken: missing end of LSB comment.
- by udo
I am getting this error when running:
insserv -r udo-startup.sh
insserv: Script udo-startup.sh is broken: missing end of LSB comment.
insserv: exiting now!
The content of udo-startup.sh is this:
#!/bin/bash
### BEGIN INIT INFO
# Provides: udo-startup.sh
# Required-Start: $local_fs $remote_fs $network $syslog
# Required-Stop: $local_fs $remote_fs $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: -
# Description: -
### END INIT INF
ID=$(xinput list | grep -i touchpad | sed '/TouchPad/s/^.*id=\([0-9]*\).*$/\1/')
xinput set-prop $ID "Device Enabled" 0
exit 0