mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-30 06:06:43 +00:00
commit
a3c46ade49
@ -31,7 +31,6 @@ cd $PKG_BUILD
|
|||||||
--enable-shared \
|
--enable-shared \
|
||||||
--disable-static \
|
--disable-static \
|
||||||
--without-portaudio \
|
--without-portaudio \
|
||||||
--without-ffmpeg
|
|
||||||
|
|
||||||
make
|
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
|
. /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