summaryrefslogtreecommitdiffstats
path: root/abs/extra/miro/miro.install
diff options
context:
space:
mode:
Diffstat (limited to 'abs/extra/miro/miro.install')
-rw-r--r--abs/extra/miro/miro.install20
1 files changed, 18 insertions, 2 deletions
diff --git a/abs/extra/miro/miro.install b/abs/extra/miro/miro.install
index db52df4..02b2c06 100644
--- a/abs/extra/miro/miro.install
+++ b/abs/extra/miro/miro.install
@@ -9,7 +9,7 @@ post_install() {
echo " <button>" >> /tmp/is.xml.tmp
echo " <type>STREAM</type>" >> /tmp/is.xml.tmp
echo " <text>Miro Player</text>" >> /tmp/is.xml.tmp
- echo " <action>EXEC /usr/bin/miro --set xine-xvhack=false --set renderer=xine</action>" >> /tmp/is.xml.tmp
+ echo " <action>EXEC /usr/bin/miro</action>" >> /tmp/is.xml.tmp
echo " </button>" >> /tmp/is.xml.tmp
echo "<!--#Miro-->" >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
@@ -36,10 +36,26 @@ post_install() {
fi
fi
fi
+ chown -R mythtv.mythtv /myth/miro
}
post_update() {
- post_install $1
+ mv /usr/share/mythtv/is.xml /tmp/is.xml.tmp
+ sed -e '/\#Miro/,/\#Miro/d' < /tmp/is.xml.tmp > /usr/share/mythtv/is.xml
+ mv /usr/share/mythtv/is.xml /tmp/is.xml.tmp
+ sed -e '/\#Miro/,/\#Miro/d' < /tmp/is.xml.tmp > /usr/share/mythtv/is.xml
+ mv /usr/share/mythtv/is.xml /tmp
+ grep -v -e /mythmenu /tmp/is.xml > /tmp/is.xml.tmp
+ echo "<!--#Miro-->" >> /tmp/is.xml.tmp
+ echo " <button>" >> /tmp/is.xml.tmp
+ echo " <type>STREAM</type>" >> /tmp/is.xml.tmp
+ echo " <text>Miro Player</text>" >> /tmp/is.xml.tmp
+ echo " <action>EXEC /usr/bin/miro</action>" >> /tmp/is.xml.tmp
+ echo " </button>" >> /tmp/is.xml.tmp
+ echo "<!--#Miro-->" >> /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
}
post_remove() {