mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
25 lines
760 B
Bash
25 lines
760 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
# Script for removing the existing boblight library and replacing it with Hyperion
|
||
|
|
||
|
# First stop the current BobLight demon and XBMC
|
||
|
initctl stop xbmc
|
||
|
initctl stop boblight
|
||
|
|
||
|
# Install the RapsiLight library
|
||
|
cp libbob2hyperion.so /usr/lib/libbob2hyperion.so
|
||
|
chmod 755 /usr/lib/libbob2hyperion.so
|
||
|
cp hyperion.config.json /etc/
|
||
|
cp hyperion.schema.json /etc/
|
||
|
|
||
|
# Remove the existing boblight client library (make backup)
|
||
|
cp /usr/lib/libboblight.so.0.0.0 /usr/lib/libboblight.old
|
||
|
# Rename the settings file to ensure that the boblight-deamon does not start
|
||
|
mv /etc/bobconfig.txt /etc/bobconfig.txt.old
|
||
|
|
||
|
# Link libboblight to the new installed library
|
||
|
ln -s /usr/lib/libbob2hyperion.so /usr/lib/libboblight.so.0.0.0
|
||
|
|
||
|
# Restart only XBMC
|
||
|
initctl start xbmc
|