summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/linhes-scripts/linhes_update2.sh
diff options
context:
space:
mode:
authorCecil Hugh Watson <knoppmyth@gmail.com>2010-01-01 19:33:16 (GMT)
committerCecil Hugh Watson <knoppmyth@gmail.com>2010-01-01 19:33:16 (GMT)
commit19c8e78717c58404bf7feaff0ba6d756cdb92bc2 (patch)
tree221890dc590ab5385486b1998c123a9375186211 /abs/core-testing/linhes-scripts/linhes_update2.sh
parent3cd73842ccc0a47f7ac1d952e2c1371388f2350f (diff)
downloadlinhes_pkgbuild-19c8e78717c58404bf7feaff0ba6d756cdb92bc2.zip
linhes_pkgbuild-19c8e78717c58404bf7feaff0ba6d756cdb92bc2.tar.gz
linhes_pkgbuild-19c8e78717c58404bf7feaff0ba6d756cdb92bc2.tar.bz2
linhes-scripts:updates upgrade scripts to ensure clean display of messages.
Diffstat (limited to 'abs/core-testing/linhes-scripts/linhes_update2.sh')
-rw-r--r--abs/core-testing/linhes-scripts/linhes_update2.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/abs/core-testing/linhes-scripts/linhes_update2.sh b/abs/core-testing/linhes-scripts/linhes_update2.sh
index 73bca24..80945eb 100644
--- a/abs/core-testing/linhes-scripts/linhes_update2.sh
+++ b/abs/core-testing/linhes-scripts/linhes_update2.sh
@@ -1,9 +1,11 @@
#!/bin/bash
+killall -9 osd_cat
echo -e "Performing updates." | osd_cat -p middle -s 5 -f"-adobe-courier-bold-*-*-*-34-*-*-*-*-*" -d 300000 -A centre &
sudo pacman -Suf --noconfirm && sudo killall -9 osd_cat
if grep -q Check\ for\ updates /usr/share/mythtv/themes/defaultmenu/linhes.xml
then
rm -fr /tmp/to_be_upgraded
+killall -9 osd_cat
echo -e "Update complete." | osd_cat -p middle -s 5 -f"-adobe-courier-bold-*-*-*-34-*-*-*-*-*" -d 5 -A centre
else
mv /usr/share/mythtv/themes/defaultmenu/linhes.xml /tmp/linhes.xml.tmp
@@ -21,5 +23,6 @@ echo "" >> /tmp/linhes.xml.tmp
echo "</mythmenu>" >> /tmp/linhes.xml.tmp
mv /tmp/linhes.xml.tmp /usr/share/mythtv/themes/defaultmenu/linhes.xml
rm -fr /tmp/to_be_upgraded
+killall -9 osd_cat
echo -e "Update complete." | osd_cat -p middle -s 5 -f"-adobe-courier-bold-*-*-*-34-*-*-*-*-*" -d 5 -A centre
fi