summaryrefslogtreecommitdiffstats
path: root/abs/extra/huludesktop/huludesktop.install
diff options
context:
space:
mode:
Diffstat (limited to 'abs/extra/huludesktop/huludesktop.install')
-rw-r--r--abs/extra/huludesktop/huludesktop.install19
1 files changed, 3 insertions, 16 deletions
diff --git a/abs/extra/huludesktop/huludesktop.install b/abs/extra/huludesktop/huludesktop.install
index 33d3d3c..360bb4e 100644
--- a/abs/extra/huludesktop/huludesktop.install
+++ b/abs/extra/huludesktop/huludesktop.install
@@ -1,28 +1,15 @@
# arg 1: the new package version
post_install() {
- 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
- echo " <type>STREAM</type>" >> /tmp/is.xml.tmp
- echo " <text>Hulu Desktop</text>" >> /tmp/is.xml.tmp
- echo " <action>EXEC huludesktop.sh</action>" >> /tmp/is.xml.tmp
- echo " </button>" >> /tmp/is.xml.tmp
- 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/themes/defaultmenu/is.xml
+ gen_is_xml.py
chown mythtv.mythtv /home/mythtv/.huludesktop
}
# arg 1: the new package version
# arg 2: the old package version
post_upgrade() {
- post_remove $1
- post_install $1
+ gen_is_xml.py
}
post_remove() {
- 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
+ gen_is_xml.py
}
op=$1