mirror of
https://github.com/libretro/Lakka-LibreELEC.git
synced 2025-02-07 20:59:51 +00:00
- download version 7.0.0 - add libmediainfo.so, comskip and hdhomerun_config - add power management reset after sleep - fix binary not being marked +x on manual updates
30 lines
581 B
Bash
Executable File
30 lines
581 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# SPDX-License-Identifier: GPL-2.0
|
|
# Copyright (C) 2024-present Team LibreELEC (https://libreelec.tv)
|
|
|
|
. /etc/profile
|
|
|
|
oe_setup_addon service.nextpvr
|
|
|
|
SERVICE="service.nextpvr"
|
|
|
|
case "$1" in
|
|
pre)
|
|
if systemctl is-active "$SERVICE" &>/dev/null ; then
|
|
systemctl stop "$SERVICE"
|
|
for module in $REMOVE_MODULES ; do
|
|
rmmod $module
|
|
done
|
|
fi
|
|
;;
|
|
post)
|
|
if systemctl is-enabled "$SERVICE" &>/dev/null ; then
|
|
for module in $REMOVE_MODULES ; do
|
|
modprobe $module
|
|
done
|
|
systemctl start "$SERVICE"
|
|
fi
|
|
;;
|
|
esac
|