From 622c2b05e6dc5f7a3d63cfe6bd51daae0e377b82 Mon Sep 17 00:00:00 2001
From: Britney Fransen <brfransen@gmail.com>
Date: Tue, 1 May 2012 15:26:50 -0500
Subject: runit-scripts: mythbackend:run: check mythtv version installed to
 start mythbackend correctly

---
 abs/core/runit-scripts/PKGBUILD                              | 2 +-
 abs/core/runit-scripts/runitscripts/services/mythbackend/run | 7 ++++++-
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/abs/core/runit-scripts/PKGBUILD b/abs/core/runit-scripts/PKGBUILD
index fd205aa..9357169 100755
--- a/abs/core/runit-scripts/PKGBUILD
+++ b/abs/core/runit-scripts/PKGBUILD
@@ -1,6 +1,6 @@
 pkgname=runit-scripts
 pkgver=2.1.1
-pkgrel=61
+pkgrel=62
 pkgdesc="collection of startup scripts for runit"
 url="http://smarden.org/runit/"
 license="BSD"
diff --git a/abs/core/runit-scripts/runitscripts/services/mythbackend/run b/abs/core/runit-scripts/runitscripts/services/mythbackend/run
index 4ff0e9f..273f655 100755
--- a/abs/core/runit-scripts/runitscripts/services/mythbackend/run
+++ b/abs/core/runit-scripts/runitscripts/services/mythbackend/run
@@ -40,5 +40,10 @@ fi
 # 			sleep 10
 #
 # 		else
-			exec su mythtv -c "/usr/bin/mythbackend -q --syslog local6" 
+            if pacman -Q mythtv | grep -q 0.24
+            then
+                exec su mythtv -c "/usr/bin/mythbackend --logfile /var/log/mythtv/mythbackend.log"
+            else
+			    exec su mythtv -c "/usr/bin/mythbackend -q --syslog local6"
+            fi
 # 		fi
-- 
cgit v0.12

