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