Asuswrt-Merlin-Linux-Shell-Scripts icon indicating copy to clipboard operation
Asuswrt-Merlin-Linux-Shell-Scripts copied to clipboard

dhcpstaticlist.sh default location

Open ColinTaylorUK opened this issue 5 years ago • 5 comments

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.

diff.txt

ColinTaylorUK avatar May 21 '19 12:05 ColinTaylorUK

I do realise that if the user re-formats the jffs partition this information would be lost.

ColinTaylorUK avatar May 21 '19 12:05 ColinTaylorUK

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.

asaddon avatar May 30 '19 17:05 asaddon

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.

Xentrk avatar Jun 30 '19 01:06 Xentrk

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

Morphy99 avatar Sep 10 '20 10:09 Morphy99

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!

Morphy99 avatar Sep 15 '20 09:09 Morphy99