A-U-N Ad blocking | *.wanup script won't execute on boot. (/opt/etc/config/)

Discussion in 'Tomato Firmware' started by Deleted member 11230, Mar 8, 2012.

  1. Hi, i'm trying to execute the script on boot from: /opt/etc/config/adblock.wanup to save nvram space, but it won't execute.

    Running it manually from SSH with: "./adblock.wanup" everything starts as expected.

    Followed this tutorial: http://tomatousb.org/tut:optware-installation

    Aslo using this: (from tutorial.)
    Code:
    #!/bin/sh
    if [ -f /var/notice/wan ]; then
      for s in /opt/etc/config/*.wanup; do $s; done
      for s in /opt/etc/config/*.fire; do $s; done
    fi
    HW: RT-16N
    Tomato firmare: 1.28.0000 MIPSR2-085V K26 USB AIO
    Any help would be appreciated.
     
  2. ntest7

    ntest7 Network Guru Member

    Try adding as the first line of the adblock.wanup script:

    #!/bin/sh
     
    Deleted member 11230 likes this.
  3. Well that worked out perfectly, really appreciate your help, thought about adding earlier, but didn't bother cause it was already present on line 12 of the script.
    Stupid me I guess, yet thanks again!
     
  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