Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add logic to enable message change.

  • Loading branch information...
commit b6ecb284e102ee33341fa3fda1900b9e449710e0 1 parent ab43c26
@jwhite66 authored
Showing with 14 additions and 1 deletion.
  1. +10 −0 makehelper
  2. +4 −1 web/webhelper.php
View
10 makehelper
@@ -0,0 +1,10 @@
+#!/bin/bash
+tmpdir=`mktemp --tmpdir -d ledMXXX`
+if [ ! -d $tmpdir ] ; then
+ echo 'Error: temp directory not made'
+ exit 1
+fi
+
+dname=`dirname $0`
+cd $dname
+(make OUTDIR=$tmpdir && make OUTDIR=$tmpdir upload && rm -rf $tmpdir ) >$tmpdir/make.log 2>&1
View
5 web/webhelper.php
@@ -52,6 +52,9 @@ function handle_fifo()
else
$cmd = "none";
+ if (isset($_GET["message"]))
+ $message = $_GET["message"];
+
if ($cmd == "status")
{
$template = file_get_contents("status.template");
@@ -98,7 +101,7 @@ function handle_fifo()
else if ($cmd == "setmessage")
{
- echo "Faking setmessage okay";
+ run_cmd("MESSAGE='{$message}' ../makehelper");
}
else if ($cmd == "init")
Please sign in to comment.
Something went wrong with that request. Please try again.