I noticed that if /run/motd.mythtv-status doesn't exist then
update-motd.d/50-mythtv-status exits with exit code 1 and pam_motd spits a
warning. I don't really want that to happen.
2020-12-06 Andrew Ruthven
Minor update to systemd service file.
+ I noticed that if /run/motd.mythtv-status doesn't exist then
+ update-motd.d/50-mythtv-status exits with exit code 1 and pam_motd spits a
+ warning. I don't really want that to happen.
+
2019-01-29 Andrew Ruthven
Release version 1.0.1.
# See:
# man mythtv-update-motd
# on how to disable this service if you don't want it to run.
-[ -f /run/motd.mythtv-status ] && cat /run/motd.mythtv-status
+
+if [ -f /run/motd.mythtv-status ]; then
+ cat /run/motd.mythtv-status
+else
+ exit 0
+fi