Can someone help me with a script please?

GoNz0

Very Senior Member
I have to send this command to trim the NVRAM and stop it moaning about it being low, I don't have many DHCP reservations left so the only easy options to automate the following

Code:
for line in `nvram show | grep =$ `; do var=${line%*=}; nvram unset $var; done; nvram commit

Would one of you younger cleverer people on here mind guiding me in the right direction please?
Where can I add it in the JFFS area, ideally so it runs once per day?

Thanks :)
 

octopus

Part of the Furniture
I have to send this command to trim the NVRAM and stop it moaning about it being low, I don't have many DHCP reservations left so the only easy options to automate the following

Code:
for line in `nvram show | grep =$ `; do var=${line%*=}; nvram unset $var; done; nvram commit

Would one of you younger cleverer people on here mind guiding me in the right direction please?
Where can I add it in the JFFS area, ideally so it runs once per day?

Thanks :)
You dont need to run it daily. Run it and forget and when nvram indicate low nvram run it again as its not used settings.
 

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top