#!/bin/sh # Create the service control configuration echo '---> Installing systemd script' SERVICE_CONTENT="[Unit] Description=Hyperion ambient light systemd service After=network.target [Service] ExecStart=/storage/hyperion/bin/hyperiond --userdata /storage/hyperion/ TimeoutStopSec=2 Restart=always RestartSec=10 [Install] WantedBy=default.target" # Place startup script for systemd and activate echo "$SERVICE_CONTENT" > /storage/.config/system.d/hyperion.service systemctl -q enable hyperion.service --now echo '*******************************************************************************' echo 'Hyperion.NG installation finished!' $REBOOTMESSAGE echo '*******************************************************************************' exit 0