1
0
mirror of https://github.com/libretro/Lakka-LibreELEC.git synced 2024-11-22 19:46:19 +00:00
Lakka-LibreELEC/packages/addons/service/hyperion/source/bin/hyperiond.start
2018-07-17 23:58:49 +02:00

21 lines
466 B
Bash

#!/bin/sh
# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2009-2016 Lukas Rusak (lrusak@libreelec.tv)
. /etc/profile
oe_setup_addon service.hyperion
if [ ! -f "$ADDON_HOME/hyperion.config.json" ]; then
mkdir -p $ADDON_HOME
cp $ADDON_DIR/config/hyperion.config.json.sample $ADDON_HOME/hyperion.config.json
fi
exec hyperiond $ADDON_HOME/hyperion.config.json &
echo $! > /run/hyperiond.pid
if [ -f "/usr/bin/Xorg" ]; then
exec hyperion-x11 &
fi