From b57730e54d9e99317215ca2a1bfff5549ab10745 Mon Sep 17 00:00:00 2001 From: remittor Date: Wed, 6 Dec 2023 22:09:58 +0300 Subject: [PATCH] Fix value of "bootmenu_delay" nvram param --- connect5.py | 3 ++- connect6.py | 3 ++- install_fw.py | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/connect5.py b/connect5.py index 5d66b4b..d7bcc61 100644 --- a/connect5.py +++ b/connect5.py @@ -381,5 +381,6 @@ if not ssh_en: print(f"WARNING: FTP server not responding (IP: {gw.ip_addr})") if ssh_en or telnet_en: - gw.run_cmd('nvram set uart_en=1; nvram set boot_wait=on; nvram set bootdelay=3; nvram commit') + gw.run_cmd('nvram set uart_en=1; nvram set boot_wait=on; nvram commit') + gw.run_cmd('nvram set bootdelay=3; nvram set bootmenu_delay=5; nvram commit') diff --git a/connect6.py b/connect6.py index d76042d..2a31ad1 100644 --- a/connect6.py +++ b/connect6.py @@ -101,5 +101,6 @@ if not ssh_en: print(f"WARNING: FTP server not responding (IP: {gw.ip_addr})") if ssh_en or telnet_en: - gw.run_cmd('nvram set uart_en=1; nvram set boot_wait=on; nvram set bootdelay=3; nvram commit') + gw.run_cmd('nvram set uart_en=1; nvram set boot_wait=on; nvram commit') + gw.run_cmd('nvram set bootdelay=3; nvram set bootmenu_delay=5; nvram commit') diff --git a/install_fw.py b/install_fw.py index eb0cfcf..c4fc21d 100644 --- a/install_fw.py +++ b/install_fw.py @@ -1042,7 +1042,7 @@ class XqFlash(): cmd = [ ] cmd.append("nvram set bootdelay=3") cmd.append("nvram set boot_wait=on") - cmd.append("nvram set bootmenu_delay=30") + cmd.append("nvram set bootmenu_delay=5") cmd.append("nvram set ssh_en=1") cmd.append("nvram set uart_en=1") cmd.append("nvram commit")