Lakka-LibreELEC/packages/addons/service/nextpvr/source/bin/nextpvr.start
emveepee 0470f51bc8 nextpvr: initial addon
NextPVR 6.1.0 with netcore 6 with configuration
2022-10-21 20:06:06 -04:00

27 lines
664 B
Bash

#!/bin/sh
# SPDX-License-Identifier: GPL-2.0-only
# Copyright (C) 2021-present Team LibreELEC (https://libreelec.tv)
. /etc/profile
oe_setup_addon service.nextpvr
# check if nextpvr-server is already successful installed
if [ ! -f "${ADDON_DIR}/extract.ok" ]; then
cd ${ADDON_DIR}
nextpvr-downloader
fi
export NEXTPVR_DATADIR_USERDATA=${ADDON_HOME}/config/
export NEXTPVR_DVBDIR=${ADDON_DIR}/dtv-scan-tables/
export SATIP_RTSP_PORT=$satiprtsp
read -d. uptime < /proc/uptime
startdelay=$((waitfor-uptime))
if [ $startdelay -gt 0 ]; then
sleep $startdelay
fi
cd ${ADDON_DIR}/nextpvr-bin
exec dotnet ${ADDON_DIR}/nextpvr-bin/NextPVRServer.dll >/dev/null