diff options
Diffstat (limited to 'abs/core/LinHES-system/linhes_update2.sh')
-rw-r--r-- | abs/core/LinHES-system/linhes_update2.sh | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/abs/core/LinHES-system/linhes_update2.sh b/abs/core/LinHES-system/linhes_update2.sh index 6087729..5c05c99 100644 --- a/abs/core/LinHES-system/linhes_update2.sh +++ b/abs/core/LinHES-system/linhes_update2.sh @@ -1,5 +1,5 @@ #!/bin/bash - +#Called from LinHES Service Menu Updates Available Menu if [[ "$1" = "install" ]] then @@ -16,7 +16,7 @@ else msg_client.py --msg "Updates canceled.|middle" fi -rm -fr /tmp/to_be_upgraded +sudo rm -fr /tmp/to_be_upgraded if grep -q Updates\ Available /usr/share/mythtv/themes/defaultmenu/linhes.xml then @@ -36,3 +36,16 @@ then echo "</mythmenu>" >> /tmp/linhes.xml.tmp mv /tmp/linhes.xml.tmp /usr/share/mythtv/themes/defaultmenu/linhes.xml fi + +#hide LinHES update message on main menu +sudo sed -i '/LinHES UPDATE MESSAGE/c\ <!--LinHES UPDATE MESSAGE' /usr/share/mythtv/themes/LinHES/menu-ui.xml + +#reload theme +#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 |