mirror of
https://github.com/openwrt-xiaomi/xmir-patcher.git
synced 2026-09-22 22:57:55 +03:00
Fix value of "bootmenu_delay" nvram param
This commit is contained in:
+2
-1
@@ -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')
|
||||
|
||||
|
||||
+2
-1
@@ -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')
|
||||
|
||||
|
||||
+1
-1
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user