Need help installing a custom init script.
I need to install a custom init script to turn on the laptop's back light (Acer Aspire 7715z). I copied the small script to /etc/init.d and made it executable by using chmod. My problem is that need init to call the script after udev. I have tried to install the script by update-rc.d script defaults which created a link in /etc/rcS.d but with the incorrect order. I also tried to brute force install the script by creating a link in /etc/rcS.d using ln --symbolic script-absolute-path link-name.
Both these approaches failed. The script is for Debian (Wheezy currently testing). The script is this:
------------------------------------
#!/bin/sh
### BEGIN INIT INFO
# Provides: bkltguard
# Required-Start: $udev
# Required-Stop:
# Default-Start: S
# Default-Stop:
# Short-Description: turns the back light on
# Description: this small script turns the
# laptop back light on. It is used to workaround
# the "modesetting kernel bug".
### END INIT INFO
setpci -s 00:02.0 F4.B=00
-----------------------------
What am I doing wrong?
|