]> git.etc.gen.nz Git - mythtv-status.git/commitdiff
Check for the Debian settings and use them.
authorAndrew Ruthven <andrew@cyclops.etc.gen.nz>
Mon, 22 Oct 2007 07:35:17 +0000 (20:35 +1300)
committerAndrew Ruthven <andrew@cyclops.etc.gen.nz>
Mon, 22 Oct 2007 07:35:17 +0000 (20:35 +1300)
bin/mythtv-update-motd

index c21cc6d19252570f45e082a8f07e871356af1cfc..543117f53872047a2bbac8c70e4c84980cdd33f9 100755 (executable)
@@ -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