This script uses the kodi-send tool to prevent Kodi from shutting down if there are active SSH, SAMBA, or NFS connections. The script checks every 60 seconds, and if at least one connection exists the command InhibitIdleShutdown(true) is sent to Kodi.
Create /storage/.config/prevent_idle.sh with the following content:
Call the script from /storage/.config/autostart.sh so it runs as a background task. It will continue to monitor the state of connections until the device is halted.
(/usr/bin/bash/storage/.config/prevent_idle.sh)&
DYNU IP Updater
This script identifies your public IP address and updates a https://dynu.com Dynamic DNS record.
Create /storage/.config/dynu_update.sh with the following content:
Call the script from /storage/.config/autostart.sh so it runs as a background task. It will continue to monitor the state of connections until the device is halted.
(/usr/bin/bash/storage/.config/dynu_update.sh)&
Note: If you set the refresh rate under 60 seconds the checkip.dyndns.org server will probably block your requests causing the script to fail.