summaryrefslogtreecommitdiffstats
path: root/abs/extra/community/mythpywii/mythpywii.install
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2012-12-01 18:26:09 (GMT)
committerJames Meyer <james.meyer@operamail.com>2012-12-01 18:26:22 (GMT)
commite2c33b0fae1fa4af8bbbfc917eb8e13a3ac0cb37 (patch)
treebee3fe89f2988dd244e11791755e129aa8c03b14 /abs/extra/community/mythpywii/mythpywii.install
parent8132c218cfc1f1acb1c6d12154e0d4ca075e77f2 (diff)
downloadlinhes_pkgbuild-e2c33b0fae1fa4af8bbbfc917eb8e13a3ac0cb37.zip
linhes_pkgbuild-e2c33b0fae1fa4af8bbbfc917eb8e13a3ac0cb37.tar.gz
linhes_pkgbuild-e2c33b0fae1fa4af8bbbfc917eb8e13a3ac0cb37.tar.bz2
Mass move of uncompiled packages to abs_not_built.
The will sit here for a bit, and then will be removed completely if no one claims them.
Diffstat (limited to 'abs/extra/community/mythpywii/mythpywii.install')
-rw-r--r--abs/extra/community/mythpywii/mythpywii.install65
1 files changed, 0 insertions, 65 deletions
diff --git a/abs/extra/community/mythpywii/mythpywii.install b/abs/extra/community/mythpywii/mythpywii.install
deleted file mode 100644
index 76b9c6e..0000000
--- a/abs/extra/community/mythpywii/mythpywii.install
+++ /dev/null
@@ -1,65 +0,0 @@
-post_install() {
- . /$MYTHHOME/.mythtv/mysql.txt
- # Enable the Network Remote Control Interface for use with the wiimote.
- # Get local machine's hostname
- HOST=`cat /etc/hostname`
- # Update mysql for Network Remote Control Support
- mysql -u mythtv -pmythtv --host=${DBHostName} mythconverg -e \
- "UPDATE settings SET data = '1' WHERE value = 'NetworkControlEnabled' AND hostname = '${HOST}'";
- echo "------------------------------------------------------------"
- echo "myth_py_wii.py expects the Network Control Port to be set to"
- echo "mythtv's default port of 6546. It will not work if you have"
- 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}' /$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
- modprobe uinput
- # Ensure this module is loaded across reboots
- echo "# uinput is needed by mythpywii" >> /etc/modules.mythvantage
- echo "uinput" >> /etc/modules.mythvantage
- # Bring up the bluetooth interface -- udev will do this after reboot
- /usr/sbin/hciconfig hci0 up
- # Punting on the multiple bluetooth adapter question.
- echo "It is assumed your bluetooth adapter will be hci0."
- echo "If you have more than one bluetooth adapter, you"
- echo "may need to edit /etc/udev/rules.d/z90-wiimote.rules"
- echo "--------------------------------------------------------------"
- echo "--------------------------------------------------------------"
- # Unfortunately there does not seem to be a way to do this without
- # the user manually intervening.
- echo "To use your wiimote you will need to restart the frontend service."
- echo "$ sudo sv restart frontend"
- echo "or simply reboot your machine."
- echo "--------------------------------------------------------------"
- echo "--------------------------------------------------------------"
- echo "After frontend restart, you should now be able to pair your"
- echo "Wiimote with your bluetooth adapter by pressing 1 & 2 at the"
- echo "same time. After a few seconds the wiimote should vibrate and the"
- echo "LEDs will show [ # . . # ] where # is on and . is off."
- echo "--------------------------------------------------------------"
- echo "See /usr/share/docs/mythpywii/CONTROLS for more information."
- echo "--------------------------------------------------------------"
-}
-
-post_remove() {
- . /$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' /$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
-