i mostly removed superfluous key definitions, and added some verbosity.
but that's just cosmetics.
then i added the '#!/usr/bin/python3' header, which allows one to run it as an independent script (and not with 'python /path/to/script.py'); this makes it easier to give it su privileges in /etc/sudoers.
but daid's original script is definitely fully functional!
but that's just cosmetics.
then i added the '#!/usr/bin/python3' header, which allows one to run it as an independent script (and not with 'python /path/to/script.py'); this makes it easier to give it su privileges in /etc/sudoers.
but daid's original script is definitely fully functional!