# 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 "" >> /tmp/is.xml.tmp
echo " " >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo " " >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo " " >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo " " >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo " " >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo " " >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo " " >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo " " >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo " " >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo " " >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo " " >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo " " >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo " " >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo " " >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
mv /tmp/is.xml.tmp /usr/share/mythtv/themes/defaultmenu/is.xml
}
post_upgrade() {
post_remove $1
post_install $1
}
post_remove() {
mv /usr/share/mythtv/themes/defaultmenu/is.xml /tmp/is.xml.tmp
sed -e '/\#WebOn/,/\#WebOn/d' < /tmp/is.xml.tmp > /usr/share/mythtv/themes/defaultmenu/is.xml
}
op=$1
shift
$op $*