mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-08-02 07:27: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
|
case "$1" in
|
||||||
hibernate|suspend)
|
hibernate|suspend)
|
||||||
vdr.stop
|
vdr.stop
|
||||||
# xbmc-send -a "Notification(suspend,unloading modules...)"
|
|
||||||
for module in $REMOVE_MODULES ; do
|
for module in $REMOVE_MODULES ; do
|
||||||
rmmod -w $module
|
rmmod -w $module
|
||||||
done
|
done
|
||||||
;;
|
;;
|
||||||
thaw|resume)
|
thaw|resume)
|
||||||
# xbmc-send -a "Notification(resume,loading modules...)"
|
|
||||||
for module in $REMOVE_MODULES ; do
|
for module in $REMOVE_MODULES ; do
|
||||||
modprobe $module
|
modprobe $module
|
||||||
done
|
done
|
||||||
# xbmc-send -a "Notification(resume,starting vdr service...)"
|
xbmc-send --host=127.0.0.1 -a "XBMC.RunScript(service.multimedia.vdr-addon)" &
|
||||||
vdr.start
|
|
||||||
;;
|
;;
|
||||||
*) exit $NA
|
*) exit $NA
|
||||||
;;
|
;;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user