Asuswrt-Merlin-Linux-Shell-Scripts
Asuswrt-Merlin-Linux-Shell-Scripts copied to clipboard
dhcpstaticlist.sh default location
The default location for saving the DHCP list is in /opt/tmp which presumes that Entware has already been installed. This dependency is unnecessary IMHO and is likely not to be the case when restoring the entries immediately after a flashing a new firmware or performing a factory reset.
Might I suggest the default location is changed to /jffs.
I do realise that if the user re-formats the jffs partition this information would be lost.
I second that suggestion as well, I just used this on a non Entware router and I met with the same restriction, though I make it work by manually editing the file path in the script. Why not give user an option to chose between /jffs or /opt or both.
Thank you for the suggestion. I'll make the update to give the user the option.
The reason I selected /opt is as ColinTaylorUK mentioned. The /jffs is prone to getting wiped during a factory reset. Hopefully the user remembers to backup jffs partition!
Hoping someone will start maintaining the nvram backup and restore utility again.
I've just backed up my list to /opt/tmp and then factory reset and firmware updated and it seems the /opt/tmp folder has been wiped! Is this normal?? My external drive was attached during reset and everything else on it has remained intact afaik
So I managed to restore everything as I took a config and jffs backup prior to doing the factory reset. It seems when entware is installed through amtm it wipes the /opt/tmp folder. So maybe backing up the file somewhere else is needed!