From 2497cd1573af6c66a7adda01519c33b5e5dd9d5c Mon Sep 17 00:00:00 2001 From: Andrew Ruthven Date: Sat, 18 Sep 2010 00:45:04 +1200 Subject: [PATCH] mythtv-status has a couple of return statuses that can mean things are okay, handle that. --- bin/mythtv-update-motd | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/mythtv-update-motd b/bin/mythtv-update-motd index e38c62e..b7e080b 100755 --- a/bin/mythtv-update-motd +++ b/bin/mythtv-update-motd @@ -10,7 +10,8 @@ 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 $ARGS -h $HOST >> /var/run/motd.new -then +ret=0 +mythtv-status $ARGS -h $HOST >> /var/run/motd.new 2> /dev/null || ret=$? +if [ $ret -eq 0 -o $ret -eq 1 ]; then [ -f /var/run/motd.new ] && mv /var/run/motd.new /var/run/motd fi -- 2.30.2