blob: 6acdd503ef52b6b102bb8ba61b13fa94435aa853 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
post_install() {
mv /usr/share/mythtv/themes/defaultmenu/game.xml /tmp
grep -v -e /mythmenu /tmp/game.xml > /tmp/game.xml.tmp
echo "<!--#Dolphin-Emu-->" >> /tmp/game.xml.tmp
echo " <button>" >> /tmp/game.xml.tmp
echo " <type>MENU_GAME</type>" >> /tmp/game.xml.tmp
echo " <text>Dolphin Emulator</text>" >> /tmp/game.xml.tmp
echo " <action>MENU dolphin-emu.xml</action>" >> /tmp/game.xml.tmp
echo " </button>" >> /tmp/game.xml.tmp
echo "<!--#Dolphin-Emu-->" >> /tmp/game.xml.tmp
echo "" >> /tmp/game.xml.tmp
echo "</mythmenu>" >> /tmp/game.xml.tmp
mv /tmp/game.xml.tmp /usr/share/mythtv/themes/defaultmenu/game.xml
}
post_upgrade() {
mv /usr/share/mythtv/themes/defaultmenu/game.xml /tmp/game.xml.tmp
sed -e '/\#Dolphin-Emu/,/\#Dolphin-Emu/d' < /tmp/game.xml.tmp > /usr/share/mythtv/themes/defaultmenu/game.xml
mv /usr/share/mythtv/themes/defaultmenu/game.xml /tmp
grep -v -e /mythmenu /tmp/game.xml > /tmp/game.xml.tmp
echo "<!--#Dolphin-Emu-->" >> /tmp/game.xml.tmp
echo " <button>" >> /tmp/game.xml.tmp
echo " <type>MENU_GAME</type>" >> /tmp/game.xml.tmp
echo " <text>Dolphin Emulator</text>" >> /tmp/game.xml.tmp
echo " <action>MENU dolphin-emu.xml</action>" >> /tmp/game.xml.tmp
echo " </button>" >> /tmp/game.xml.tmp
echo "<!--#Dolphin-Emu-->" >> /tmp/game.xml.tmp
echo "" >> /tmp/game.xml.tmp
echo "</mythmenu>" >> /tmp/game.xml.tmp
mv /tmp/game.xml.tmp /usr/share/mythtv/themes/defaultmenu/game.xml
}
post_remove() {
mv /usr/share/mythtv/themes/defaultmenu/game.xml /tmp/game.xml.tmp
sed -e '/\#Dolphin-Emu/,/\#Dolphin-Emu/d' < /tmp/game.xml.tmp > /usr/share/mythtv/themes/defaultmenu/game.xml
}
|