Reset OpenWrt configuration if firstboot fails

From Dawg Wiki


These commands are used for resetting a router that runs OpenWRT router in the failsafe mode. To get into failsafe mode, hold down the reset button for several seconds during power on, set your computer's static address to 192.168.1.2/24 and telnet to 192.168.1.1 to enter the commands. You'll lose all your configs.

Code

mount_root
mtd -r erase rootfs_data
reboot -f