mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
31cb1904bf
Former-commit-id: 58d628e0f73fdf92e938f42a139b60b8f77a3424
24 lines
728 B
Bash
Executable File
24 lines
728 B
Bash
Executable File
#!/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
|