Hi,
What is the command for doing factory-reset using cli, ubus/uci command.
firstboot
reboot
See: https://openwrt.org/docs/guide-user/troubleshooting/failsafe_and_factory_reset#factory_reset
1 Like
Hi,
I tried this but getting this error.
root@OpenWrt:/# firstboot
This will erase all settings and remove any installed packages. Are you sure? [N/y]
y
MTD partition 'rootfs_data' not found
root@OpenWrt:/# mtd -r erase rootfs_data
Could not open mtd device: rootfs_data
Could not open mtd device: rootfs_data
root@OpenWrt:/#
root@OpenWrt:/#
/sbin/defaultreset ----This worked. Wanted to check if we Can do this with any ubus call command.