hi guys,
i’m trying to run a script at startup/reboot with crontab but it doesn’t seem to work.
i’ve installed follow tool to turn of backlight after time X: https://github.com/DougieLawson/backlight_dimmer/blob/master/README.md
when i run the command manually in terminal it works fine: ./timeout 10 event0
then i’ve created a backlightdimmer.sh script in /var/lib/dietpi/-autostart/ with the following content:
#!bin/sh
cd backlight_dimmer
./timeout 10 event0
then i 've run crontab -e and created following entry:
@reboot sleep 30 && sudo /var/lib/dietpi/-autostart/backlightdimmer.sh
i saved crontab with STR + O into /tmp/crontab.4FRlb3/crontab
but when i reboot diepi nothing happens …
i’m new to this and googled all the above steps. did i misunderstand something ?
best regards