“Reset to defaults” does not remove all files/directories
Username: Robert
Origin: https://bugs.openwrt.org/index.php?do=details&task_id=2262
In the
GUI
, if you wipe your router with “Reset to defaults”, it does not correctly remove “hidden” directories such as .ssh/
The file and directory walking in jffs2reset.c, when done from the
GUI
, is not including the “hidden” subdirectories (and possibly hidden files).
When I do “umount /overlay && jffs2reset && reboot” from the command line, the .ssh/ directory is fully removed as expected.
Full discussion can be found at
https://forum.openwrt.org/t/reset-to-defaults-does-not-remove-root-ssh-directory/34804