summaryrefslogtreecommitdiffstats
path: root/abs/extra/miro/miro.install
diff options
context:
space:
mode:
authorCecil <knoppmyth@gmail.com>2011-02-11 09:09:46 (GMT)
committerCecil <knoppmyth@gmail.com>2011-02-11 09:09:46 (GMT)
commit216c63cf4c2e1cce015575ad4f5b0e79940ff8c2 (patch)
treec82517d25c073a16213dd00ef582fbf4698fe472 /abs/extra/miro/miro.install
parent7ffed172d3b02e6aaa5c7f3c6d11e7fa2c08b10a (diff)
downloadlinhes_pkgbuild-216c63cf4c2e1cce015575ad4f5b0e79940ff8c2.zip
linhes_pkgbuild-216c63cf4c2e1cce015575ad4f5b0e79940ff8c2.tar.gz
linhes_pkgbuild-216c63cf4c2e1cce015575ad4f5b0e79940ff8c2.tar.bz2
miro:fixes
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() {