diff options
Diffstat (limited to 'etc/inc/notices.inc')
-rw-r--r-- | etc/inc/notices.inc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/etc/inc/notices.inc b/etc/inc/notices.inc index 27ff7af..9c9740e 100644 --- a/etc/inc/notices.inc +++ b/etc/inc/notices.inc @@ -64,6 +64,8 @@ function file_notice($id, $notice, $category = "General", $url = "", $priority = fwrite($queueout, serialize($queue)); fclose($queueout); log_error("New alert found: {$notice}"); + if(file_exists("/dev/led1")) + exec("echo 1 > /dev/led1"); return $queuekey; } @@ -116,6 +118,8 @@ function close_notice($id) { } else { unlink_if_exists($notice_path); } + if(file_exists("/dev/led1")) + exec("echo 0 > /dev/led1"); return; } |