From: Andrew Ruthven Date: Mon, 22 Oct 2007 07:35:17 +0000 (+1300) Subject: Check for the Debian settings and use them. X-Git-Tag: 0.1~6 X-Git-Url: http://git.etc.gen.nz/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1ae6d8329105c88e88aaf4de03afd304cad037e8;p=mythtv-status.git Check for the Debian settings and use them. --- 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