summaryrefslogtreecommitdiffstats
path: root/abs/core/LinHES-system/linhes_update2.sh
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2014-02-13 21:18:16 (GMT)
committerBritney Fransen <brfransen@gmail.com>2014-02-13 21:18:16 (GMT)
commitb8f425e3dff10f18eb019157bbf553074e3fcc51 (patch)
tree00e57217183b1470580d42354a9048b8f81751e2 /abs/core/LinHES-system/linhes_update2.sh
parent8565905f38cc3c1f59c1bcc4bec9e3ac21a39313 (diff)
downloadlinhes_pkgbuild-b8f425e3dff10f18eb019157bbf553074e3fcc51.zip
linhes_pkgbuild-b8f425e3dff10f18eb019157bbf553074e3fcc51.tar.gz
linhes_pkgbuild-b8f425e3dff10f18eb019157bbf553074e3fcc51.tar.bz2
LinHES-system: lh_system_host_update: add Notify option that calls linhes_update.sh. refs #959
linhes_update.sh: add -s option to silence OSD. Add sed to show and hide message in LH theme. linhes_update2.sh: add sed to hide message in LH theme.
Diffstat (limited to 'abs/core/LinHES-system/linhes_update2.sh')
-rw-r--r--abs/core/LinHES-system/linhes_update2.sh10
1 files changed, 8 insertions, 2 deletions
diff --git a/abs/core/LinHES-system/linhes_update2.sh b/abs/core/LinHES-system/linhes_update2.sh
index 6087729..d1913d0 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,9 @@ 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
+pkill -USR1 mythfrontend