Kodi addon to shutdown the NAS from the TV.

Markus Hennecke fab8dc169f Bump compatibility to kodi 19 %!s(int64=3) %!d(string=hai) anos
resources 4422339e46 Initial commit %!s(int64=4) %!d(string=hai) anos
LICENSE.txt 4422339e46 Initial commit %!s(int64=4) %!d(string=hai) anos
README.md b6a66c27c1 Add function to remount NFS shares, make sure paramiko is there %!s(int64=4) %!d(string=hai) anos
addon.py b6a66c27c1 Add function to remount NFS shares, make sure paramiko is there %!s(int64=4) %!d(string=hai) anos
addon.xml fab8dc169f Bump compatibility to kodi 19 %!s(int64=3) %!d(string=hai) anos
changelog.txt 4422339e46 Initial commit %!s(int64=4) %!d(string=hai) anos
icon.png 4422339e46 Initial commit %!s(int64=4) %!d(string=hai) anos

README.md

Shutting down and remounting NFS share of NAS

System settings required to enable mount -a from kodi

/etc/sudoers.d/kodi

Cmnd_Alias MOUNT_A_CMD=/bin/mount -a
kodi ALL=(ALL) NOPASSWD: MOUNT_A_CMD

Setup user account on the NAS system

Create the user kodi and note the password.

/etc/sudoers.d/kodi on the NAS

kodi ALL=(ALL) NOPASSWD: /sbin/shutdown -P now