I have just set up OpenWRT One router and I am confused how to turn it off. No matter if i do halt or poweroff it reboots itself to operational state as reboot would be invoked instead. How do i properly turn off this machine?
there are few things happening on the attached SSD to M2 slot. I am afraid that if something will be written to vnstat or other palces it may get corrupted.
The OO poweroff does an orderly shutdown and because it doesn’t have a switch it will reboot. If you issue a halt, all services stop, so nothing will be corrupted.
Edit: maybe this can help:
root@RuralRoots:/sbin# halt --help
BusyBox v1.37.0 (2026-01-02 17:07:02 UTC) multi-call binary.
Usage: halt [-d DELAY] [-nf]
Halt the system
-d SEC Delay interval
-n Do not sync
-f Force (don't go through init)
root@RuralRoots:/sbin# poweroff --help
BusyBox v1.37.0 (2026-01-02 17:07:02 UTC) multi-call binary.
Usage: poweroff [-d DELAY] [-nf]
Halt and shut off power
-d SEC Delay interval
-n Do not sync
-f Force (don't go through init)
Thanks for the explanation. So basically if i want ot turn off OpenWRT One remotely until i arrive and investigate a case i need to implement smart plug for example, there is no other way right?
If you must initiate a full power-off, then yes that would work with the proviso that you would have to have remote access to the smart-switch after issuing halt.