Backup & Restore NVRAMThe following scripts when run on an OpenWrt device will backup the NVRAM settings in format that will permit them to be easily restored. One of the nice things with this technique is that you can manually edit the resulting file if necessary to add/remove/change some of the settings before restoring them in to a different device if required.
nvram show | sort | sed 's/$/\"/g; s/=/=\"/; s/^/nvram set /' > nvram_restore.sh
The resulting file 'nvram_restore.sh' can be run to restore the NVRAM settings.
|