summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-01-29 21:27:36 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-01-29 21:27:36 +0000
commit5f9bcd7acb8a39a0dae15e2be26bb9ed8afcc790 (patch)
tree4677d9f27d10efa7bd876e461d1f9a077fddfc36 /etc
parenta0a125b931b438769206c168a5f8f34d68fef388 (diff)
downloadpfsense-5f9bcd7acb8a39a0dae15e2be26bb9ed8afcc790.zip
pfsense-5f9bcd7acb8a39a0dae15e2be26bb9ed8afcc790.tar.gz
* Turn off led earlier in function to avoid return
* Use consistent /bin/echo
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/notices.inc14
1 files changed, 7 insertions, 7 deletions
diff --git a/etc/inc/notices.inc b/etc/inc/notices.inc
index 823a9c0..462594c 100644
--- a/etc/inc/notices.inc
+++ b/etc/inc/notices.inc
@@ -66,7 +66,7 @@ function file_notice($id, $notice, $category = "General", $url = "", $priority =
log_error("New alert found: {$notice}");
/* soekris */
if(file_exists("/dev/led/error"))
- exec("echo 1 > /dev/led/error");
+ exec("/bin/echo 1 > /dev/led/error");
/* wrap */
if(file_exists("/dev/led/led2"))
exec("/bin/echo f5 > /dev/led/led2");
@@ -95,6 +95,12 @@ function get_notices($category = "all") {
function close_notice($id) {
global $notice_path;
require_once("util.inc");
+ /* 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");
$ids = array();
if(!$notices = get_notices()) return;
if($id == "all") {
@@ -123,12 +129,6 @@ function close_notice($id) {
} else {
unlink_if_exists($notice_path);
}
- /* soekris */
- if(file_exists("/dev/led/error"))
- exec("echo 0 > /dev/led/error");
- /* wrap */
- if(file_exists("/dev/led/led2"))
- exec("/bin/echo 0 > /dev/led/led2");
return;
}
OpenPOWER on IntegriCloud