mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-08-01 15:07:49 +00:00
vdr-addon: instruct xbmc to start vdr-addon on resume (if it isn't disabled)
This commit is contained in:
parent
6f06800dde
commit
a4be5c79e3
@ -32,18 +32,15 @@ if [ -f "$ADDON_CONFIG_DIR/vdr-sleep.conf" ]; then
|
||||
case "$1" in
|
||||
hibernate|suspend)
|
||||
vdr.stop
|
||||
# xbmc-send -a "Notification(suspend,unloading modules...)"
|
||||
for module in $REMOVE_MODULES ; do
|
||||
rmmod -w $module
|
||||
done
|
||||
;;
|
||||
thaw|resume)
|
||||
# xbmc-send -a "Notification(resume,loading modules...)"
|
||||
for module in $REMOVE_MODULES ; do
|
||||
modprobe $module
|
||||
done
|
||||
# xbmc-send -a "Notification(resume,starting vdr service...)"
|
||||
vdr.start
|
||||
xbmc-send --host=127.0.0.1 -a "XBMC.RunScript(service.multimedia.vdr-addon)" &
|
||||
;;
|
||||
*) exit $NA
|
||||
;;
|
||||
|
Loading…
x
Reference in New Issue
Block a user