I would like to use the above in a root daemon, but I noticed that my old root daemon that worked in Lubuntu 14.04 LTS didn't work when I pasted it into the special file that you just mentioned: /etc/rc.local (before the exit 0). Is there any reason why it doesn't work in Trisquel 7.0?

My root daemon:
#!/bin/sh -e

while true
        do
echo "$(cat /home/a/dim_value)" > /sys/class/backlight/intel_backlight/brightness
        sleep 5
done

exit 0

{This way is convenient since all I have to do is execute a script (non-sudo) to change the value in /home/a/dim_value, and the root daemon will echo whatever the contents of this file is into /sys/class/backlight/intel_backlight/brightness. In Lubuntu 14.04 it worked prefectly. }

Reply via email to