From 1ae6d8329105c88e88aaf4de03afd304cad037e8 Mon Sep 17 00:00:00 2001 From: Andrew Ruthven Date: Mon, 22 Oct 2007 20:35:17 +1300 Subject: [PATCH] Check for the Debian settings and use them. --- bin/mythtv-update-motd | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/bin/mythtv-update-motd b/bin/mythtv-update-motd index c21cc6d..543117f 100755 --- a/bin/mythtv-update-motd +++ b/bin/mythtv-update-motd @@ -1,9 +1,16 @@ #!/bin/bash +. /etc/default/mythtv-status + +if [ x$RUN != xyes ] +then + exit +fi + [ ! -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 +if mythtv-status -h $HOST >> /var/run/motd.new then mv /var/run/motd.new /var/run/motd fi -- 2.30.2