diff options
-rw-r--r-- | abs/core-testing/linhes-scripts/PKGBUILD | 2 | ||||
-rw-r--r-- | abs/core-testing/linhes-scripts/linhes_update.sh | 10 | ||||
-rw-r--r-- | abs/core-testing/linhes-scripts/linhes_update2.sh | 10 |
3 files changed, 11 insertions, 11 deletions
diff --git a/abs/core-testing/linhes-scripts/PKGBUILD b/abs/core-testing/linhes-scripts/PKGBUILD index 917d927..fa5fe5a 100644 --- a/abs/core-testing/linhes-scripts/PKGBUILD +++ b/abs/core-testing/linhes-scripts/PKGBUILD @@ -3,7 +3,7 @@ pkgname=linhes-scripts pkgver=1 -pkgrel=42 +pkgrel=43 pkgdesc="Various scripts that help to make LinHES, LinHES." arch=('i686' 'x86_64') license=('GPL2') diff --git a/abs/core-testing/linhes-scripts/linhes_update.sh b/abs/core-testing/linhes-scripts/linhes_update.sh index 39b341e..8fdb665 100644 --- a/abs/core-testing/linhes-scripts/linhes_update.sh +++ b/abs/core-testing/linhes-scripts/linhes_update.sh @@ -1,6 +1,6 @@ #!/bin/bash dsply () { - if grep -q Updates\ Available /usr/share/mythtv/linhes.xml + if grep -q Updates\ Available /usr/share/mythtv/themes/defaultmenu/linhes.xml then killall osd_cat echo -e "Updates available!\n Exit and reenter Service Menu\n to perform updates." | osd_cat -p middle -s 5 -f"-adobe-courier-bold-*-*-*-34-*-*-*-*-*" -d 10 -A centre @@ -18,9 +18,9 @@ chck () { killall osd_cat echo -e "No updates available\n at this time." | osd_cat -p middle -s 5 -f"-adobe-courier-bold-*-*-*-34-*-*-*-*-*" -d 5 -A centre else - mv /usr/share/mythtv/linhes.xml /tmp/linhes.xml.tmp - sed -e '/\#Check/,/\#Check/d' < /tmp/linhes.xml.tmp > /usr/share/mythtv/linhes.xml - mv /usr/share/mythtv/linhes.xml /tmp + mv /usr/share/mythtv/themes/defaultmenu/linhes.xml /tmp/linhes.xml.tmp + sed -e '/\#Check/,/\#Check/d' < /tmp/linhes.xml.tmp > /usr/share/mythtv/themes/defaultmenu/linhes.xml + mv /usr/share/mythtv/themes/defaultmenu/linhes.xml /tmp grep -v -e /mythmenu /tmp/linhes.xml > /tmp/linhes.xml.tmp echo "<!--#UpdatesAvailable-->" >> /tmp/linhes.xml.tmp echo " <button>" >> /tmp/linhes.xml.tmp @@ -30,7 +30,7 @@ chck () { echo " </button>" >> /tmp/linhes.xml.tmp echo "<!--#UpdatesAvailable-->" >> /tmp/linhes.xml.tmp echo "</mythmenu>" >> /tmp/linhes.xml.tmp - mv /tmp/linhes.xml.tmp /usr/share/mythtv/linhes.xml + mv /tmp/linhes.xml.tmp /usr/share/mythtv/themes/defaultmenu/linhes.xml dsply fi } diff --git a/abs/core-testing/linhes-scripts/linhes_update2.sh b/abs/core-testing/linhes-scripts/linhes_update2.sh index e6d216d..73bca24 100644 --- a/abs/core-testing/linhes-scripts/linhes_update2.sh +++ b/abs/core-testing/linhes-scripts/linhes_update2.sh @@ -1,14 +1,14 @@ #!/bin/bash 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/linhes.xml +if grep -q Check\ for\ updates /usr/share/mythtv/themes/defaultmenu/linhes.xml then rm -fr /tmp/to_be_upgraded echo -e "Update complete." | osd_cat -p middle -s 5 -f"-adobe-courier-bold-*-*-*-34-*-*-*-*-*" -d 5 -A centre else -mv /usr/share/mythtv/linhes.xml /tmp/linhes.xml.tmp -sed -e '/\#UpdatesAv/,/\#UpdatesAv/d' < /tmp/linhes.xml.tmp > /usr/share/mythtv/linhes.xml -mv /usr/share/mythtv/linhes.xml /tmp +mv /usr/share/mythtv/themes/defaultmenu/linhes.xml /tmp/linhes.xml.tmp +sed -e '/\#UpdatesAv/,/\#UpdatesAv/d' < /tmp/linhes.xml.tmp > /usr/share/mythtv/themes/defaultmenu/linhes.xml +mv /usr/share/mythtv/themes/defaultmenu/linhes.xml /tmp grep -v -e /mythmenu /tmp/linhes.xml > /tmp/linhes.xml.tmp echo "<!--#Check for updates-->" >> /tmp/linhes.xml.tmp echo " <button>" >> /tmp/linhes.xml.tmp @@ -19,7 +19,7 @@ echo " </button>" >> /tmp/linhes.xml.tmp echo "<!--#Check for updates-->" >> /tmp/linhes.xml.tmp echo "" >> /tmp/linhes.xml.tmp echo "</mythmenu>" >> /tmp/linhes.xml.tmp -mv /tmp/linhes.xml.tmp /usr/share/mythtv/linhes.xml +mv /tmp/linhes.xml.tmp /usr/share/mythtv/themes/defaultmenu/linhes.xml rm -fr /tmp/to_be_upgraded echo -e "Update complete." | osd_cat -p middle -s 5 -f"-adobe-courier-bold-*-*-*-34-*-*-*-*-*" -d 5 -A centre fi |