From cae45eda5d8c05e1bcd0a83d8b992e035699d62d Mon Sep 17 00:00:00 2001 From: Andrew Ruthven Date: Mon, 15 Oct 2007 11:12:56 +1300 Subject: [PATCH] Update the MOTD. --- bin/mythtv-update-motd | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 bin/mythtv-update-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 -- 2.30.2