blob: 9b06b2e6b6378a87112a2c1a141d7893acb58405 (
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
#!/bin/bash
#install_hulu.sh
if [ -e /tmp/huludesktop_i386.deb ]
then
cd /tmp
deb2targz huludesktop_i386.deb
tar -xzvf huludesktop_i386.tar.gz -C /
else
echo "Cannot find huludesktop_i386.deb."
echo "Please download it from http://www.hulu.com/labs/hulu-desktop-linux"
echo "Then copy (or move) it to /tmp"
exit
fi
if grep -q Hulu /usr/share/mythtv/themes/defaultmenu/is.xml
then
echo "Hulu Desktop exist in Online Streams!"
else
mv /usr/share/mythtv/themes/defaultmenu/is.xml /tmp
grep -v -e /mythmenu /tmp/is.xml > /tmp/is.xml.tmp
echo "<!--#Hulu-->" >> /tmp/is.xml.tmp
echo " <button>" >> /tmp/is.xml.tmp
echo " <type>STREAM</type>" >> /tmp/is.xml.tmp
echo " <text>Hulu Desktop</text>" >> /tmp/is.xml.tmp
echo " <action>EXEC huludesktop</action>" >> /tmp/is.xml.tmp
echo " </button>" >> /tmp/is.xml.tmp
echo "<!--#Hulu-->" >> /tmp/is.xml.tmp
echo "" >> /tmp/is.xml.tmp
echo "</mythmenu>" >> /tmp/is.xml.tmp
mv /tmp/is.xml.tmp /usr/share/mythtv/themes/defaultmenu/is.xml
echo "Hulu Desktop has been added to Online Streams!"
fi
if [ -e /home/mythtv/.huludesktop ]
then
echo "Found existing Hulu configuration file."
else
cat >> /home/mythtv/.huludesktop << EOF
[display]
fullscreen = TRUE
width = 1024
height = 576
pos_x = 201
pos_y = 179
[remote]
lirc_device = /dev/lircd
lirc_remote_identifier = mceusb
lirc_release_suffix = _UP
lirc_repeat_threshold = 10
button_name_up = Up
button_name_down = Down
button_name_left = Left
button_name_right = Right
button_name_select = OK
button_name_menu = Home
[flash]
flash_location = /usr/lib/mozilla/plugins/libflashplayer.so
[screensaver]
suspend_script = /usr/bin/xscreensaver-command -deactivate
resume_script = /usr/bin/xscreensaver-command -activate
[version]
latest = (null)
eula_version = 0
EOF
chown mythtv.mythtv /home/mythtv/.huludesktop
fi
echo "Integration of Hulu Desktop is now complete!"
echo "Thanks for using LinHES!"
|