mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
Added XBian install
Former-commit-id: 5e00e5ff99c57a31a1861cb2ebe6e03da2bc6e2f
This commit is contained in:
parent
2bbd4cf081
commit
9f9504af29
@ -2,6 +2,9 @@
|
||||
|
||||
# Script for downloading and installing the latest Hyperion release
|
||||
|
||||
# Find out if we are on XBian
|
||||
IS_XBIAN=`cat /etc/issue | grep XBian | wc -l`
|
||||
|
||||
# Make sure that the boblight daemon is no longer running
|
||||
BOBLIGHT_PROCNR=$(ps -e | grep "boblight" | wc -l)
|
||||
if [ $BOBLIGHT_PROCNR -eq 1 ];
|
||||
@ -11,24 +14,31 @@ then
|
||||
fi
|
||||
|
||||
# Stop hyperion daemon if it is running
|
||||
initctl stop hyperion
|
||||
/sbin/initctl stop hyperion
|
||||
|
||||
# Get the Hyperion executable
|
||||
wget -N github.com/tvdzwan/hyperion/raw/master/deploy/hyperiond -P /usr/bin/
|
||||
chmod +x /usr/bin/hyperiond
|
||||
|
||||
# Get the Hyperion command line utility
|
||||
wget -N github.com/tvdzwan/hyperion/raw/master/deploy/hyperion-remote -P /usr/bin/
|
||||
chmod +x /usr/bin/hyperion-remote
|
||||
|
||||
# Copy the gpio changer (gpio->spi) to the /usr/bin
|
||||
wget -N github.com/tvdzwan/hyperion/raw/master/deploy/gpio2spi -P /usr/bin/
|
||||
if [ $IS_XBIAN -eq 0 ]; then
|
||||
wget -N github.com/tvdzwan/hyperion/raw/master/deploy/gpio2spi -P /usr/bin/
|
||||
chmod +x /usr/bin/gpio2spi
|
||||
fi
|
||||
|
||||
# Copy the hyperion configuration file to /etc
|
||||
wget -N github.com/tvdzwan/hyperion/raw/master/config/hyperion.config.json -P /etc/
|
||||
|
||||
# Copy the service control configuration to /etc/int
|
||||
wget -N github.com/tvdzwan/hyperion/raw/master/deploy/hyperion.conf -P /etc/init/
|
||||
|
||||
# Set permissions
|
||||
chmod +x /usr/bin/hyperiond
|
||||
chmod +x /usr/bin/hyperion-remote
|
||||
chmod +x /usr/bin/gpio2spi
|
||||
if [ $IS_XBIAN -eq 0 ]; then
|
||||
wget -N github.com/tvdzwan/hyperion/raw/master/deploy/hyperion.conf -P /etc/init/
|
||||
else
|
||||
wget -N github.com/tvdzwan/hyperion/raw/master/deploy/hyperion.xbian.conf -P /etc/init/ -O hyperion.conf
|
||||
fi
|
||||
|
||||
# Start the hyperion daemon
|
||||
initctl start hyperion
|
||||
/sbin/initctl start hyperion
|
||||
|
@ -2,22 +2,40 @@
|
||||
|
||||
# Script for downloading and installing the latest Hyperion release
|
||||
|
||||
# Stop hyperion daemon if it is running
|
||||
initctl stop hyperion
|
||||
# Find out if we are on XBian
|
||||
IS_XBIAN=`cat /etc/issue | grep XBian | wc -l`
|
||||
|
||||
# Make sure that the boblight daemon is no longer running
|
||||
BOBLIGHT_PROCNR=$(ps -e | grep "boblight" | wc -l)
|
||||
if [ $BOBLIGHT_PROCNR -eq 1 ];
|
||||
then
|
||||
echo 'Found running instance of boblight. Please stop boblight via XBMC menu before installing hyperion'
|
||||
exit
|
||||
fi
|
||||
|
||||
# Stop hyperion daemon if it is running
|
||||
/sbin/initctl stop hyperion
|
||||
|
||||
# Get the Hyperion executable
|
||||
wget -N github.com/tvdzwan/hyperion/raw/master/deploy/hyperiond -P /usr/bin/
|
||||
chmod +x /usr/bin/hyperiond
|
||||
|
||||
# Get the Hyperion command line utility
|
||||
wget -N github.com/tvdzwan/hyperion/raw/master/deploy/hyperion-remote -P /usr/bin/
|
||||
chmod +x /usr/bin/hyperion-remote
|
||||
|
||||
# Copy the gpio changer (gpio->spi) to the /usr/bin
|
||||
wget -N github.com/tvdzwan/hyperion/raw/master/deploy/gpio2spi -P /usr/bin/
|
||||
if [ $IS_XBIAN -eq 0 ]; then
|
||||
wget -N github.com/tvdzwan/hyperion/raw/master/deploy/gpio2spi -P /usr/bin/
|
||||
chmod +x /usr/bin/gpio2spi
|
||||
fi
|
||||
|
||||
# Copy the service control configuration to /etc/int
|
||||
wget -N github.com/tvdzwan/hyperion/raw/master/deploy/hyperion.conf -P /etc/init/
|
||||
|
||||
# Set permissions
|
||||
chmod +x /usr/bin/hyperiond
|
||||
chmod +x /usr/bin/hyperion-remote
|
||||
chmod +x /usr/bin/gpio2spi
|
||||
if [ $IS_XBIAN -eq 0 ]; then
|
||||
wget -N github.com/tvdzwan/hyperion/raw/master/deploy/hyperion.conf -P /etc/init/
|
||||
else
|
||||
wget -N github.com/tvdzwan/hyperion/raw/master/deploy/hyperion.xbian.conf -P /etc/init/ -O hyperion.conf
|
||||
fi
|
||||
|
||||
# Start the hyperion daemon
|
||||
initctl start hyperion
|
||||
/sbin/initctl start hyperion
|
||||
|
16
deploy/hyperion.xbian.conf
Normal file
16
deploy/hyperion.xbian.conf
Normal file
@ -0,0 +1,16 @@
|
||||
## Hyperion daemon
|
||||
|
||||
description "hyperion"
|
||||
author "poljvd & tvdzwan"
|
||||
|
||||
start on (runlevel [2345])
|
||||
stop on (runlevel [!2345])
|
||||
|
||||
respawn
|
||||
|
||||
pre-start script
|
||||
modprobe spi-bcm2708
|
||||
end script
|
||||
|
||||
exec /usr/bin/hyperiond /etc/hyperion.config.json
|
||||
|
Loading…
Reference in New Issue
Block a user