mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-30 22:26:42 +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
|
||||
|
||||
LOCKFILE="/var/lock/boblightd.sleep"
|
||||
|
||||
case "$1" in
|
||||
hibernate|suspend)
|
||||
progress "Shutting down boblightd for suspending..."
|
||||
boblightd.stop
|
||||
touch $LOCKFILE
|
||||
;;
|
||||
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
|
||||
;;
|
||||
|
Loading…
x
Reference in New Issue
Block a user