Dual Firmware: Advanced Reboot for shell


Using ZyXEL NBG6817 and OpenWrt 22.03.5 r20134-5f15225c1e

I broke my Luci on new installed 23.05.0-rc1 by updating a package. I wanted to switch back to the other partition but Luci did not worked with advanced reboot installed. So I ask me how to call advanced reboot function via shell. I found setting some env variables but that did not worked.

There are also some forum posts but this described it very well: https://www.linksys.com/support-article?articleNum=316324

Executing it:

root@OpenWrt:~# /usr/sbin/fw_printenv -n boot_part
## Error: "boot_part" not defined

Is it possible to simply call the luci function via shell or get the described shell function to work? Managed to access the packages luci page so fixed it for now but like to know to it via shell be prepared for future issues.


The nbg6817 does not store the dualflag in ubootenv.


1 Like

Btw., if all you did was upgrading a package, the normal factory reset/ failsafe procedures should also work.


I reset the router once via reset button successfully (restored the settings afterwards) and after breaking Luci (shows an exception after update) it does not reset anymore even if the resart was shown by the LEDs. Could not access the device via shell to try it there but found out that I can access the shell via VPN. Perhaps my VLAN settings broke...

Anyway, is it save to exchange the partition content like described in the github project? Will install it to have a failsave.


The 'normal' features (listed under --help) are safe, the ones listed under --full-help also contain advanced features used during its development, which aren't all safe (but the respective help text call them out as such).