-
-
Save rogeriopradoj/825d39fa80b38ec0ae5268ce2b747216 to your computer and use it in GitHub Desktop.
CoreELEC or LibreELEC autostart.sh to auto start scripts upon reboot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# this located in /storage/.config/autostart.sh on a CoreELEC box, run chmod +x to make it executable | |
# use nohup to run the script in the backgroud | |
# nohup /storage/freemyip/updateDynDNS.sh & | |
# use this to run once off tasks | |
( | |
# pause few seconds to wait for network & time services to start | |
sleep 5 | |
DT=$(date +"%m-%d-%Y, %r") | |
echo "Box rebooted on $DT, running tasks in autostart.sh" >> /storage/freemyip/DynDNSUpdate.log | |
/storage/freemyip/updateDynDNS.sh | |
) & |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment