mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
Update of the installation script to use wget to obtain the latest release in deploy
Former-commit-id: f9b1be2af9c9f2bcfc79fa6851a4dec4d2e494ce
This commit is contained in:
parent
5817c753dc
commit
2b4060c1b1
@ -1,24 +1,27 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# Script for removing the existing boblight library and replacing it with Hyperion
|
# Script for downloading and installing the latest Hyperion release
|
||||||
|
|
||||||
# First stop the current BobLight demon and XBMC
|
# Make sure that the boblight daemon is no longer running
|
||||||
initctl stop xbmc
|
BOBLIGHT_PROCNR=$(ps -e | grep "boblight" | wc -l)
|
||||||
initctl stop boblight
|
if [ $BOBLIGHT_PROCNR -eq 1 ];
|
||||||
|
then
|
||||||
|
echo 'Found running instance of boblight. Please stop boblight via XBMC menu before installing hyperion'
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
# Install the RapsiLight library
|
# Stop hyperion daemon if it is running
|
||||||
cp libbob2hyperion.so /usr/lib/libbob2hyperion.so
|
initctl stop hyperion
|
||||||
chmod 755 /usr/lib/libbob2hyperion.so
|
|
||||||
cp hyperion.config.json /etc/
|
|
||||||
cp hyperion.schema.json /etc/
|
|
||||||
|
|
||||||
# Remove the existing boblight client library (make backup)
|
# Copy the hyperion-binaries to the /usr/bin
|
||||||
cp /usr/lib/libboblight.so.0.0.0 /usr/lib/libboblight.old
|
wget github.com/tvdzwan/hyperion/tree/master/deploy/hyperiond -P /usr/bin/
|
||||||
# Rename the settings file to ensure that the boblight-deamon does not start
|
wget github.com/tvdzwan/hyperion/tree/master/deploy/hyperion-remote -P /usr/bin/
|
||||||
mv /etc/bobconfig.txt /etc/bobconfig.txt.old
|
|
||||||
|
|
||||||
# Link libboblight to the new installed library
|
# Copy the hyperion configuration file to /etc
|
||||||
ln -s /usr/lib/libbob2hyperion.so /usr/lib/libboblight.so.0.0.0
|
wget github.com/tvdzwan/hyperion/tree/master/config/hyperion.config.json -P /etc/
|
||||||
|
|
||||||
# Restart only XBMC
|
# Copy the service control configuration to /etc/int
|
||||||
initctl start xbmc
|
wget github.com/tvdzwan/hyperion/tree/master/bin/hyperion.conf -P /etc/init/
|
||||||
|
|
||||||
|
# Start the hyperion daemon
|
||||||
|
initctl start hyperion
|
||||||
|
Loading…
Reference in New Issue
Block a user