insserv: Script <SCRIPT_NAME> is broken: missing end of LSB comment.
Posted
by
udo
on Super User
See other posts from Super User
or by udo
Published on 2011-02-06T13:54:28Z
Indexed on
2011/02/06
15:28 UTC
Read the original article
Hit count: 361
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
© Super User or respective owner