add support for failsafe boot via env (#62)
To use it in openwrt, run: fw_setenv failsafe 1
This commit is contained in:
@@ -60,6 +60,14 @@ void main_loop(void)
|
||||
efi_launch_capsules();
|
||||
}
|
||||
|
||||
if (env_get("failsafe") != NULL) {
|
||||
env_set("failsafe", NULL);
|
||||
env_save();
|
||||
|
||||
led_control("led", "system_led", "on");
|
||||
run_command("httpd", 0);
|
||||
}
|
||||
|
||||
run_command("glbtn", 0);
|
||||
|
||||
s = bootdelay_process();
|
||||
|
||||
@@ -61,6 +61,14 @@ void main_loop(void)
|
||||
efi_launch_capsules();
|
||||
}
|
||||
|
||||
if (env_get("failsafe") != NULL) {
|
||||
env_set("failsafe", NULL);
|
||||
env_save();
|
||||
|
||||
led_control("led", "system_led", "on");
|
||||
run_command("httpd", 0);
|
||||
}
|
||||
|
||||
run_command("glbtn", 0);
|
||||
|
||||
s = bootdelay_process();
|
||||
|
||||
Reference in New Issue
Block a user