Hyperion update script added

Former-commit-id: 58d628e0f73fdf92e938f42a139b60b8f77a3424
This commit is contained in:
johan 2013-10-17 00:03:29 +02:00
parent 64b9316a04
commit 31cb1904bf
1 changed files with 23 additions and 0 deletions

23
bin/update_hyperion.sh Executable file
View File

@ -0,0 +1,23 @@
#!/bin/sh
# Script for downloading and installing the latest Hyperion release
# Stop hyperion daemon if it is running
initctl stop hyperion
wget -N github.com/tvdzwan/hyperion/raw/master/deploy/hyperiond -P /usr/bin/
wget -N github.com/tvdzwan/hyperion/raw/master/deploy/hyperion-remote -P /usr/bin/
# Copy the gpio changer (gpio->spi) to the /usr/bin
wget -N github.com/tvdzwan/hyperion/raw/master/deploy/gpio2spi -P /usr/bin/
# 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
# Start the hyperion daemon
initctl start hyperion