mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Add an LED pattern function for assigning interfaces, and enable its use. When finished, switch back to the bootup pattern.
This commit is contained in:
parent
b0c231e4f3
commit
a6bd415514
@ -137,6 +137,15 @@ function led_kitt() {
|
||||
led_pattern(3, 'aaAAaa');
|
||||
}
|
||||
|
||||
/*
|
||||
* 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)
|
||||
*/
|
||||
@ -146,6 +155,15 @@ function led_normalize() {
|
||||
led_off(3);
|
||||
}
|
||||
|
||||
/*
|
||||
* 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.
|
||||
|
||||
@ -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 */
|
||||
|
||||
Loading…
Reference in New Issue
Block a user