Factory reset from commandline

Is it possible to do factory reset (and select the mode) from the command line? I’d prefer that to reset button woodo (especially on MOXes).

It‘s somehow possible:

schnapps rollback factory
reboot

If you want to override factory image you can upload/download a medkit to your router and then run

schnapps import -f medkit-XXX.tar.gz

prior to the commands above.

In any case schnapps creates a snapshot of the current state of your router to which you can go back using

schnapps rollback XXX
reboot

Where XXX is the snapshot id that was printed by schnapps (or get it by schnapps list)

6 Likes

Nice, would be great to add it to the documentation… :slight_smile:

1 Like