geko53
Regular Contributor
So i have this script
[...save_nvram.sh...]
I haven't tried this on the router yet, just want to see what everyone thinks about this. I do want to clear the nvram stuff out but i don't want to have to manually put everything back.
Great stuff! I just tested the script, and it seems to do what it should do...
i think???? i got most of them anyone see what might be missing?
The first line of your script should echo the shebang - so you can use the new file (I call it "rest_nvram.sh" to be able to differ) immediately after saving the output of the script:
Code:
sh /tmp/mnt/DISK/Scripts/save_nvram.sh > /tmp/mnt/DISK/Scripts/rest_nvram.sh
file save_nvram.sh:
---------------------
#!/bin/sh
echo "#!/bin/sh"
echo nvram set vts_rulelist=\"`nvram get vts_rulelist`\"
[...]
---------------------
Ciao
Gerald