mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-31 14:37:59 +00:00
boblightd: boblightd.power: don't use xbmc-send
This commit is contained in:
parent
aac212f307
commit
112de1285f
@ -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
|
||||||
;;
|
;;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user