From 9a8ce0cc250ee2a658583ddb1d9496a0c9733b7f Mon Sep 17 00:00:00 2001 From: Andrew Ruthven Date: Fri, 16 Nov 2007 19:08:30 +1300 Subject: [PATCH] Debian - Allow passing extra arguments to mythtv-status in the init script. --- debian/init.d | 2 +- debian/postinst | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/debian/init.d b/debian/init.d index 3012c80..4113d20 100644 --- a/debian/init.d +++ b/debian/init.d @@ -72,7 +72,7 @@ case "$1" in cp /var/run/motd.orig /var/run/motd.new - if $DAEMON -h $HOST >> /var/run/motd.new + if $DAEMON $ARGS -h $HOST >> /var/run/motd.new then mv /var/run/motd.new /var/run/motd fi diff --git a/debian/postinst b/debian/postinst index 863b8fe..fc12623 100644 --- a/debian/postinst +++ b/debian/postinst @@ -45,6 +45,10 @@ RUN=$RUN # HOST: # What host should be check the status on? HOST=$HOST + +# ARGS: +# Any extra arguments to pass to mythtv-status (i.e., -e and/or -d). +ARGS=$ARGS _eof db_stop -- 2.30.2