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/backlig ... /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:
Code: Select all
#!bin/sh
cd backlight_dimmer
./timeout 10 event0
Code: Select all
@reboot sleep 30 && sudo /var/lib/dietpi/-autostart/backlightdimmer.sh
but when i reboot diepi nothing happens ...
i'm new to this and googled all the above steps. did i misunderstand something ?
best regards