diff options
author | Britney Fransen <brfransen@gmail.com> | 2012-05-01 21:41:19 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2012-05-01 21:41:19 (GMT) |
commit | 327e251b49fb25c48ddddae3536f5ce4a8b710ce (patch) | |
tree | 8f5d7346ec0cbc999a7cf014a9d0533a47a8b829 /abs/core/LinHES-system/mythfrontend-start | |
parent | 622c2b05e6dc5f7a3d63cfe6bd51daae0e377b82 (diff) | |
download | linhes_pkgbuild-327e251b49fb25c48ddddae3536f5ce4a8b710ce.zip linhes_pkgbuild-327e251b49fb25c48ddddae3536f5ce4a8b710ce.tar.gz linhes_pkgbuild-327e251b49fb25c48ddddae3536f5ce4a8b710ce.tar.bz2 |
LinHES-system: LinHES-run & mythfrontend-start: check installed mythtv version and set startcmd.
Diffstat (limited to 'abs/core/LinHES-system/mythfrontend-start')
-rwxr-xr-x | abs/core/LinHES-system/mythfrontend-start | 11 |
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 |