mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 13:46:49 +00:00
commit
a3c46ade49
@ -31,7 +31,6 @@ cd $PKG_BUILD
|
||||
--enable-shared \
|
||||
--disable-static \
|
||||
--without-portaudio \
|
||||
--without-ffmpeg
|
||||
|
||||
make
|
||||
|
||||
|
@ -0,0 +1,13 @@
|
||||
diff --git a/src/clients/flagmanager.cpp b/src/clients/flagmanager.cpp
|
||||
index d9f3cbf..82eb978 100644
|
||||
--- a/src/clients/flagmanager.cpp
|
||||
+++ b/src/clients/flagmanager.cpp
|
||||
@@ -25,6 +25,8 @@
|
||||
#define BOBLIGHT_DLOPEN_EXTERN
|
||||
#include "../lib/boblight.h"
|
||||
|
||||
+#include <unistd.h>
|
||||
+
|
||||
using namespace std;
|
||||
|
||||
//very simple, store a copy of argc and argv
|
@ -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