summaryrefslogtreecommitdiffstats
path: root/abs/core/LinHES-system/mythfrontend-start
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core/LinHES-system/mythfrontend-start')
-rwxr-xr-xabs/core/LinHES-system/mythfrontend-start11
1 files changed, 9 insertions, 2 deletions
diff --git a/abs/core/LinHES-system/mythfrontend-start b/abs/core/LinHES-system/mythfrontend-start
index e2645bf..1f48449 100755
--- a/abs/core/LinHES-system/mythfrontend-start
+++ b/abs/core/LinHES-system/mythfrontend-start
@@ -3,6 +3,13 @@ PIDS=$(pidof mythfrontend)
P_array=( $PIDS )
let "instances = ${#P_array[*]}" # Count elements.
+if pacman -Q mythtv | grep -q 0.24
+then
+ STARTCMD="/usr/bin/mythfrontend -d -l /var/log/mythtv/mythfrontend.log"
+else
+ STARTCMD="/usr/bin/mythfrontend -d --syslog local6"
+fi
+
if [ $instances -gt 0 ];
then
if [ $instances -eq 1 ]; then
@@ -15,8 +22,8 @@ then
mythvantage -q "${question}"
if [ $? = 16 ]
then
- mythfrontend -d --syslog local6
+ $STARTCMD 2>&1
fi
else
- mythfrontend -d --syslog local6
+ $STARTCMD 2>&1
fi