Revision d0d32c1b
Added by Scott Ullrich over 18 years ago
etc/inc/notices.inc | ||
---|---|---|
64 | 64 |
fwrite($queueout, serialize($queue)); |
65 | 65 |
fclose($queueout); |
66 | 66 |
log_error("New alert found: {$notice}"); |
67 |
if(file_exists("/dev/led1")) |
|
68 |
exec("echo 1 > /dev/led1"); |
|
67 | 69 |
return $queuekey; |
68 | 70 |
} |
69 | 71 |
|
... | ... | |
116 | 118 |
} else { |
117 | 119 |
unlink_if_exists($notice_path); |
118 | 120 |
} |
121 |
if(file_exists("/dev/led1")) |
|
122 |
exec("echo 0 > /dev/led1"); |
|
119 | 123 |
return; |
120 | 124 |
} |
121 | 125 |
|
Also available in: Unified diff
Toggle the LED on wrap/soekris when an alert is filed if /dev/led1 exists.