Can someone help me with a script please?

  • ATTENTION! As of November 1, 2020, you are not able to reply to threads 6 months after the thread is opened if there are more than 500 posts in the thread.
    Threads will not be locked, so posts may still be edited by their authors.
    Just start a new thread on the topic to post if you get an error message when trying to reply to a thread.

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

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 :)
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