summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
authorjim-p <jim@pingle.org>2009-07-13 19:58:51 -0400
committerjim-p <jim@pingle.org>2009-07-13 20:02:03 -0400
commit0c8840862458dba73b76b42fbb483ab3790a58ae (patch)
tree1f146832df145d36433138baf7ce115cecb5de7c /etc/inc
parent763b5a4df69ac888055549ef2c0a0df14baec9f4 (diff)
downloadpfsense-0c8840862458dba73b76b42fbb483ab3790a58ae.zip
pfsense-0c8840862458dba73b76b42fbb483ab3790a58ae.tar.gz
Switch notice LED alert to LED 1, and make it a little more eye-catching. Also default the LED to on when notice is ACK'd.
Part of feature #17. Also leaves LEDs 2 and 3 free for blinkled to use.
Diffstat (limited to 'etc/inc')
-rw-r--r--etc/inc/notices.inc11
1 files changed, 5 insertions, 6 deletions
diff --git a/etc/inc/notices.inc b/etc/inc/notices.inc
index e2d5bd9..cf6a6a6 100644
--- a/etc/inc/notices.inc
+++ b/etc/inc/notices.inc
@@ -34,6 +34,7 @@
*/
require_once("globals.inc");
+require_once("led.inc");
$notice_path = $g['tmp_path'] . '/notices';
@@ -67,9 +68,8 @@ function file_notice($id, $notice, $category = "General", $url = "", $priority =
/* soekris */
if(file_exists("/dev/led/error"))
exec("/bin/echo 1 > /dev/led/error");
- /* wrap */
- if(file_exists("/dev/led/led2"))
- exec("/bin/echo f5 > /dev/led/led2");
+ /* wrap & alix */
+ led_morse(1, 'sos');
notify_via_growl($notice);
return $queuekey;
}
@@ -98,9 +98,8 @@ function close_notice($id) {
/* soekris */
if(file_exists("/dev/led/error"))
exec("/bin/echo 0 > /dev/led/error");
- /* wrap */
- if(file_exists("/dev/led/led2"))
- exec("/bin/echo 0 > /dev/led/led2");
+ /* wrap & alix */
+ led_normalize();
$ids = array();
if(!$notices = get_notices()) return;
if($id == "all") {
OpenPOWER on IntegriCloud