summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2010-07-28 16:40:38 -0400
committerjim-p <jimp@pfsense.org>2010-07-28 16:40:38 -0400
commita6bd415514380477d790f950efbc3a78526de459 (patch)
tree7fc2b1e5c7a7f5659f42f829a81400c66dcd7a8c /etc
parentb0c231e4f391f57ca7c20e2bd823bb585f131a2f (diff)
downloadpfsense-a6bd415514380477d790f950efbc3a78526de459.zip
pfsense-a6bd415514380477d790f950efbc3a78526de459.tar.gz
Add an LED pattern function for assigning interfaces, and enable its use. When finished, switch back to the bootup pattern.
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/led.inc18
-rwxr-xr-xetc/rc.bootup2
2 files changed, 20 insertions, 0 deletions
diff --git a/etc/inc/led.inc b/etc/inc/led.inc
index d684100..ed67db5 100644
--- a/etc/inc/led.inc
+++ b/etc/inc/led.inc
@@ -138,6 +138,15 @@ function led_kitt() {
}
/*
+ * Custom pattern for assigning interfaces
+ */
+function led_assigninterfaces() {
+ led_pattern(1, 'AaaAaaaaaaaaaaaa');
+ led_pattern(2, 'aaaaaAaaAaaaaaaa');
+ led_pattern(3, 'aaaaaaaaaaAaaAaa');
+}
+
+/*
* Return the three LEDs to a standard setup (1=on, 2 and 3 = off)
*/
function led_normalize() {
@@ -147,6 +156,15 @@ function led_normalize() {
}
/*
+ * Shut off ALL LEDs.
+ */
+function led_alloff() {
+ led_off(1);
+ led_off(2);
+ led_off(3);
+}
+
+/*
* Translate a string to morse code. Characters not known to have a
* valid morse code representation will be ignored.
*/
diff --git a/etc/rc.bootup b/etc/rc.bootup
index eb5a0b4..408949a 100755
--- a/etc/rc.bootup
+++ b/etc/rc.bootup
@@ -164,8 +164,10 @@ $wan_if = get_real_interface();
* avoid a reboot and thats a good thing.
*/
while(is_interface_mismatch() == true) {
+ led_assigninterfaces();
echo "\nNetwork interface mismatch -- Running interface assignment option.\n";
set_networking_interfaces_ports();
+ led_kitt();
}
/* convert config and clean backups */
OpenPOWER on IntegriCloud