prevent locking yourself out

I’m playing with openWRT on a La Fonera 2100 and I kept locking myself out of the device by screwing up the netwrok configuration – the only way out of this is to re-flash the root file system – not difficult but a pain in the arse!

Then I found this:
http://www.ecshi.net/cat/linux/site/howtos/howto/fonera-openwrt

which suggests a natty trick of automatically restoring your working network config after 2 minutes unless you stop it:

`sleep 120 && cp /tmp/backup /etc/config/network && /etc/init.d/network restart`&

Nice one Christian!

Leave a Reply