diff options
Diffstat (limited to 'abs/extra/huludesktop/huludesktop.install')
-rw-r--r-- | abs/extra/huludesktop/huludesktop.install | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/abs/extra/huludesktop/huludesktop.install b/abs/extra/huludesktop/huludesktop.install index 271c5a1..d2f72a7 100644 --- a/abs/extra/huludesktop/huludesktop.install +++ b/abs/extra/huludesktop/huludesktop.install @@ -1,6 +1,6 @@ # arg 1: the new package version post_install() { - mv /usr/share/mythtv/is.xml /tmp + mv /usr/share/mythtv/themes/defaultmenu/is.xml /tmp grep -v -e /mythmenu /tmp/is.xml > /tmp/is.xml.tmp echo "<!--#Hulu-->" >> /tmp/is.xml.tmp echo " <button>" >> /tmp/is.xml.tmp @@ -11,14 +11,17 @@ post_install() { echo "<!--#Hulu-->" >> /tmp/is.xml.tmp echo "" >> /tmp/is.xml.tmp echo "</mythmenu>" >> /tmp/is.xml.tmp - mv /tmp/is.xml.tmp /usr/share/mythtv/is.xml + mv /tmp/is.xml.tmp /usr/share/mythtv/themes/defaultmenu/is.xml } # arg 1: the new package version # arg 2: the old package version +post_upgrade() { + post_remove $1 + post_install $1 +} post_remove() { - rm -fr /usr/share/mythtv/appletrailer.xml - mv /usr/share/mythtv/is.xml /tmp/is.xml.tmp - sed -e '/\#Hulu/,/\#Hulu/d' < /tmp/is.xml.tmp > /usr/share/mythtv/is.xml + mv /usr/share/mythtv/themes/defaultmenu/is.xml /tmp/is.xml.tmp + sed -e '/\#Hulu/,/\#Hulu/d' < /tmp/is.xml.tmp > /usr/share/mythtv/themes/defaultmenu/is.xml } op=$1 |