diff options
Diffstat (limited to 'abs/extra-testing/miro/miro.install')
-rw-r--r-- | abs/extra-testing/miro/miro.install | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/abs/extra-testing/miro/miro.install b/abs/extra-testing/miro/miro.install index 1f1121f..4ee823b 100644 --- a/abs/extra-testing/miro/miro.install +++ b/abs/extra-testing/miro/miro.install @@ -12,10 +12,30 @@ post_install() { echo "" >> /tmp/is.xml.tmp echo "</mythmenu>" >> /tmp/is.xml.tmp mv /tmp/is.xml.tmp /usr/share/mythtv/is.xml + if [ -d /myth/democracy ] + then + ln -s /myth/democracy /home/mythtv/.miro + ln -s /myth/miro/Movies /myth/video/Miro + exit 1 + else + if [ -d /myth/miro ] + then + ln -s /myth/miro /home/mythtv/.miro + ln -s /myth/miro/Movies /myth/video/Miro + exit 1 + else + if [ ! -d /myth/miro -o /myth/democracy ] + then + mkdir -p /myth/miro/Movies + ln -s /myth/miro /home/mythtv/.miro + ln -s /myth/miro/Movies /home/mythtv/Movies + ln -s /myth/miro/Movies /myth/video/Miro + fi + fi + fi } post_remove() { - mv /usr/share/mythtv/is.xml /tmp/is.xml.tmp - sed -e '/\#Miro/,/\#Miro/d' < /tmp/is.xml.tmp > /usr/share/mythtv/is.xml + rm -fr /home/mythtv/.miro /myth/video/Miro /myth/miro /myth/democracy } op=$1 |