1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Manually load WAN Up script

Discussion in 'Tomato Firmware' started by eahm, Dec 5, 2011.

  1. eahm

    eahm LI Guru Member

    Guys, I often have to change settings that unload/disable the anti-ads script and I can't always restart the router. Is there a way to send a command to load the script without restart the router?

    This is the script I use.

  2. mstombs

    mstombs Network Guru Member

    "service wan restart" should do a full restart, but the wanup script gets save in /tmp so
    should just do your wan up script actions
  3. eahm

    eahm LI Guru Member

    Sorry I didn't follow up. I tried the command before and it seems working (no errors in return) but the script doesn't load (still see the ads until restart).
  4. ntest7

    ntest7 Network Guru Member

    Looking at the script, it appears you should run the command:

  5. eahm

    eahm LI Guru Member

    Thanks, this works...but partially, there is a website where I always test the script but I can't link it here because it's an xxx website full of ads.
    I will send you the link privately so you can test it but let me explain why partially.

    When you load the script manually with /tmp/dlhosts the ads are all 404 missing but there is a fake chat bar on the bottom of the page that it fully disappear only after the router restarts.

    I guess this is a good start, I just wanted to know if there is a perfect way to load it like when the router restart.


    edit: It works. Just watch the CPU % and when it drops to ~1% the script will be fully loaded. Clear the cache and the bar is gone. Thanks again.

Share This Page