summaryrefslogtreecommitdiffstats
path: root/abs/extra/community/mythpywii/mythpywii.install
diff options
context:
space:
mode:
Diffstat (limited to 'abs/extra/community/mythpywii/mythpywii.install')
-rw-r--r--abs/extra/community/mythpywii/mythpywii.install14
1 files changed, 10 insertions, 4 deletions
diff --git a/abs/extra/community/mythpywii/mythpywii.install b/abs/extra/community/mythpywii/mythpywii.install
index 8d0b867..76b9c6e 100644
--- a/abs/extra/community/mythpywii/mythpywii.install
+++ b/abs/extra/community/mythpywii/mythpywii.install
@@ -1,5 +1,5 @@
post_install() {
- . /home/mythtv/.mythtv/mysql.txt
+ . /$MYTHHOME/.mythtv/mysql.txt
# Enable the Network Remote Control Interface for use with the wiimote.
# Get local machine's hostname
HOST=`cat /etc/hostname`
@@ -12,7 +12,7 @@ post_install() {
echo "changed it to something else."
echo "------------------------------------------------------------"
# Add myth_py_wii.py to ~/mythtv/.fluxbox/apps before LinHES-run
- sed -i '/LinHES-run/ i [startup] {/usr/bin/myth_py_wii.py >/dev/null}' /home/mythtv/.fluxbox/apps
+ sed -i '/LinHES-run/ i [startup] {/usr/bin/myth_py_wii.py >/dev/null}' /$MYTHHOME/.fluxbox/apps
# udev needs to pick up our new rule for the mythpywii.
udevadm trigger --subsystem-match="misc" --subsystem-match="bluetooth"
# Add the uinput module
@@ -45,15 +45,21 @@ post_install() {
}
post_remove() {
- . /home/mythtv/.mythtv/mysql.txt
+ . /$MYTHHOME/.mythtv/mysql.txt
# kill myth_py_wii.py
WIIPID=`pidof -o %PPID /usr/bin/myth_py_wii.py`
[ -n "$WIIPID" ] && kill $WIIPID
# Remove uinput
sed -i '/uinput/d' /etc/modules.mythvantage
# Remove line in .fluxbox/apps
- sed -i '/myth_py_wii.py/d' /home/mythtv/.fluxbox/apps
+ sed -i '/myth_py_wii.py/d' /$MYTHHOME/.fluxbox/apps
# Remove network remote control support
mysql -u mythtv -pmythtv --host=${DBHostName} mythconverg -e \
"UPDATE settings SET data = '0' WHERE value = 'NetworkControlEnabled' AND hostname = '${HOST}'";
}
+
+if [ x$MYTHHOME = x ]
+then
+ . /etc/profile.d/MythVantage.sh
+fi
+