vdr-addon: instruct xbmc to start vdr-addon on resume (if it isn't disabled)

This commit is contained in:
Stefan Saraev 2012-02-26 17:00:17 +02:00
parent 6f06800dde
commit a4be5c79e3

View File

@ -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
;;