Description:
During some testing with some of my scripts that i'm running on shutdown and reboot, i noticed that the shutdown.sh script does not work.
shutdown.sh script used for testing:
Code
case "$1" in
halt)
# your commands here
;;
poweroff)
# your commands here
;;
reboot)
# your commands here
;;
*)
echo '******' $(date) '******' >> /storage/shutdown.log
;;
esac
Display More
The command used in the scrip is only used for testing purposes and it's working correctly with the autostop.sh .
Test results:
After several shutdown and reboots, both from Kodi UI and with SSH commands, the shutdown.log it's empty (the file was previously created by autostop.sh).
It seems that it was also discussed here but without any conclusion.