Problem with anti ads scripts

Discussion in 'Tomato Firmware' started by eahm, Sep 7, 2011.

  1. eahm

    eahm LI Guru Member

    I have few problems with the anti ads scripts, I made a new thread because it's easier to keep track.

    First problem:
    Every time I make a change and save anything else the script unloads itself until I restart the router. Is this ok? Is rebooting the only way to keep it alive? It's ok if it's the only way, I just need to know. The script is this one:

    Second problem:
    This script, I would love to test it but it doesn't activate:

    The script I am using blocks the ads right away, I see a blank page where the ads is supposed to be but the second one doesn't activate, even after the reboot. Am I doing something wrong?

    Thanks guys.
  2. EOC_Jason

    EOC_Jason Networkin' Nut Member

    When making & savings changes on the router many run through a basic script to "re-save" all the various files from the nvram settings. So yes I would say that is normal.

    Why does everyone want to do this on their router? Firefox + Ad Block Plus works excellent for me. ;)
  3. eahm

    eahm LI Guru Member

    Thank you for the reply, that's all I needed since that one is my favorite script.

    We, I need that not just for me but for my customers. It's better to keep track of "locks", faster maintenance, less problems. I think when you have 20+ workstations customers a quick and stable solution is almost always the best way.
  4. EOC_Jason

    EOC_Jason Networkin' Nut Member

    You shouldn't reboot the router if you can help it (I understand it wipes the settings when you make changes, but there are alternatives). My suggestion would be to save it as a shell script, then you can just telnet or ssh into the router and execute it whenever. That way everyone won't loose connectivity when the router reboots. If you have spare space on your router, enable the JFFS partition and go from there.

    Or as someone else pointed out, you can go to the "tools -> system menu, and execute shell commands from there.
  5. eahm

    eahm LI Guru Member

    That's useful, do you know the exact command to restart the service?
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice