diff options
author | Britney Fransen <brfransen@gmail.com> | 2014-03-07 16:54:04 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2014-03-07 16:54:04 (GMT) |
commit | d383e18985ab0d72bb9a5e046775a64f54920ba5 (patch) | |
tree | a980354b379d0bc42eab1561eb191937b0dca6a9 /abs/core/LinHES-system/linhes_update2.sh | |
parent | 66ffc6371f3429a3778ce0f88953df7111f34ab6 (diff) | |
download | linhes_pkgbuild-d383e18985ab0d72bb9a5e046775a64f54920ba5.zip linhes_pkgbuild-d383e18985ab0d72bb9a5e046775a64f54920ba5.tar.gz linhes_pkgbuild-d383e18985ab0d72bb9a5e046775a64f54920ba5.tar.bz2 |
LinHES-system: linhes_update: check if started using mythfrontend-start just kill mythfrontend
mythfrontend-start is started from mythwelcome and if USR1 is used it ends mythfrontend-start which causes mythwelcome to accept remote commands and multiple mythfrontends will try to be started.
Diffstat (limited to 'abs/core/LinHES-system/linhes_update2.sh')
-rw-r--r-- | abs/core/LinHES-system/linhes_update2.sh | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/abs/core/LinHES-system/linhes_update2.sh b/abs/core/LinHES-system/linhes_update2.sh index d1913d0..5c05c99 100644 --- a/abs/core/LinHES-system/linhes_update2.sh +++ b/abs/core/LinHES-system/linhes_update2.sh @@ -41,4 +41,11 @@ fi sudo sed -i '/LinHES UPDATE MESSAGE/c\ <!--LinHES UPDATE MESSAGE' /usr/share/mythtv/themes/LinHES/menu-ui.xml #reload theme -pkill -USR1 mythfrontend +#check if started from mythfrontend-start and if so just kill mfe +#otherwise reload mfe +if [[ `pgrep -fx "/bin/bash /usr/LH/bin/mythfrontend-start"` ]] +then + killall mythfrontend +else + pkill -USR1 mythfrontend +fi |