I have posted this in another thread but that thread may not be the right place to post…
I use the backup script from http://tomatousb.org/tut:backup-settings-logs-more-to-usb-drive-script on my WNR3500L with toastman firmware and ran across something I don't understand when I used the file under NVRam/Set to restore my rounter parameters after firmware. Before I update the firmware, I run the backup script to get the current settings. When I update the firmware, I always check mark "After flashing, erase all data in NVRAM memory" to erase router's settings. After the router is updated and restarted, I telent into the router and do ". configfile", "nvram commit", then "reboot".
After the unit is rebooted, most parameters are restored except the WiFi settings. For the WiFi settings, my SSID is changed to "wireless", WiFi mode is changed from "G only" to "Auto", WiFi security mode is change from "WPA/WPA2 Personal" to "disabled"
In the config file, I have
nvram set wl0_ssid=my original SSID
nvram set wl0_security_mode="wpaX_personal"
nvram set wl0_wpa_psk=my shared key
If I change the security mode manually from "disabled" to "WPA/WPA2 personal, my original shared key will be restored.
If I restore the router's configuration by using the file under Configurations, everything will be restored.
Should I use the file under NVRam/Set to transfer my parameters between different firmware builds?
Is my method of restoration the right way to go?
Did anyone seeing something similar when you use this method to restore a router's parameters?
Another item I noticed is wl_txpwr is set to 42 no matter what I set at the GUI page.