From: Andrew Ruthven Date: Sun, 14 Oct 2007 22:12:56 +0000 (+1300) Subject: Update the MOTD. X-Git-Tag: 0.1~8 X-Git-Url: http://git.etc.gen.nz/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cae45eda5d8c05e1bcd0a83d8b992e035699d62d;p=mythtv-status.git Update the MOTD. --- diff --git a/bin/mythtv-update-motd b/bin/mythtv-update-motd new file mode 100755 index 0000000..c21cc6d --- /dev/null +++ b/bin/mythtv-update-motd @@ -0,0 +1,9 @@ +#!/bin/bash + +[ ! -f /var/run/motd.orig ] && cp /var/run/motd /var/run/motd.orig + +cp /var/run/motd.orig /var/run/motd.new +if mythtv-status >> /var/run/motd.new +then + mv /var/run/motd.new /var/run/motd +fi