boblightd: boblightd.power: don't use xbmc-send

This commit is contained in:
Stefan Saraev 2012-04-13 21:42:44 +03:00
parent aac212f307
commit 112de1285f

View File

@ -22,12 +22,20 @@
. /etc/profile . /etc/profile
LOCKFILE="/var/lock/boblightd.sleep"
case "$1" in case "$1" in
hibernate|suspend) hibernate|suspend)
progress "Shutting down boblightd for suspending..."
boblightd.stop boblightd.stop
touch $LOCKFILE
;; ;;
thaw|resume) thaw|resume)
xbmc-send --host=127.0.0.1 -a "XBMC.RunScript(service.multimedia.boblightd)" & progress "Restarting boblightd for wakeup..."
if [ -f "$LOCKFILE" ] ; then
rm -rf "$LOCKFILE"
boblightd.start
fi
;; ;;
*) exit $NA *) exit $NA
;; ;;