Merge pull request #454 from stefansaraev/boblight

boblight update
This commit is contained in:
Stephan Raue 2012-04-14 02:25:29 -07:00
commit a3c46ade49
3 changed files with 22 additions and 2 deletions

View File

@ -31,7 +31,6 @@ cd $PKG_BUILD
--enable-shared \
--disable-static \
--without-portaudio \
--without-ffmpeg
make

View File

@ -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

View File

@ -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
;;