Search results

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

  1. Dabombber

    Diversion Diversion - the Router Ad-Blocker

    I must have been looking at a cat from before uninstalling :( Yea, that was a suggestion but deleting the lines is so much better.
  2. Dabombber

    Diversion Diversion - the Router Ad-Blocker

    Ah that'd be where I was getting confused then. Also, I think 'a=a""$0' is the same as 'a=a $0'. Another thing I noticed is that after uninstalling Diversion, post-mount.div is still in the jffs scripts folder. That's fine since it's doing entware stuff, but perhaps it should have a check for...
  3. Dabombber

    Diversion Diversion - the Router Ad-Blocker

    Do you have spaces in your tmp file?
  4. Dabombber

    Diversion Diversion - the Router Ad-Blocker

    They should have already been separated by a single space, are you sure you didn't remove the space entirely?
  5. Dabombber

    Diversion Diversion - the Router Ad-Blocker

    I've been playing around with awk a bit lately, this might be useful :) write_blockinglist(){ awk '{if(NR%20==0){a=a" "$0;print b a; a=""}else a=a" "$0}END{if(a)print b a}' b="$blockingIP" "${blockinglist}.tmp" > "${blockinglist}"; }
  6. Dabombber

    i want to make sure i'm doing DNS right

    You shouldn't need a to use a dnsmasq.postconf script if you are using your router for DNS. The example you linked to is to advertise to clients on your network the IP of a DNS server hosted somewhere else on your network (something like a Pi-hole). By default the dnsmasq config has...
  7. Dabombber

    Diversion Diversion - the Router Ad-Blocker

    ad.doubleclick.net wat?
  8. Dabombber

    [Request for comment] Addition of sqlite3 client for script authors

    This would be really nice considering the current lack of any data processing ability (technically cvs would work but ehhhh). It could be limited to /www/ext, although I still don't think it's worth adding compared to just using lighttpd/nginx.
  9. Dabombber

    Diversion Diversion - the Router Ad-Blocker

    I found that Steven Black's list didn't really cover most android ads, which is a bit strange since the sources it uses do. Your best bet might be to look through a few host files and add one which covers what you need, then you should be future-proofed as long as it's maintained...
  10. Dabombber

    scMerlin scMerlin - service and script control menu for AsusWRT-Merlin

    Kind of curious, what does all the lock stuff do?
  11. Dabombber

    [Beta] Asuswrt-Merlin 384.11 Beta is now available

    Just curious about the dhcp options for the ntp server. Should the interface be specified to match the other options, and should it be advertised on ipv6 too? dhcp-option=option:ntp-server,192.168.1.1 to dhcp-option=lan,option:ntp-server,192.168.1.1 dhcp-option=lan,option6:ntp-server,[::]...
  12. Dabombber

    [Release] Asuswrt-Merlin 384.10 is now available

    Just paste each line and press enter. There's lots of guides for SSH, maybe play around and get familiar with it. You could even use an online emulator if you're worried about messing anything up, although it will be slightly different from your router.
  13. Dabombber

    [Release] Asuswrt-Merlin 384.10 is now available

    As Martineau said, try them directly in the console first to see if they even work. If so, a firewall-start script might be enough, but you'd really want to add them in openvpn-event so they only apply when the vpn is up.
  14. Dabombber

    Configuring MC in merlin and PuTTY in windows.

    Since it seems like you plan on using a hard drive anyway, it'd be easiest to have mc installed through entware. If you really don't want it, I guess you could temporarily install it and copy whatever you need "/opt/share/terminfo" etc. You shouldn't need to configure Putty at all.
  15. Dabombber

    [Release] Asuswrt-Merlin 384.10 is now available

    You can modify the script I posted here a little for this. If you don't want the remote access warning to be added: And if you do: I also included an example of how to hide the samba warning notification, which I use.
  16. Dabombber

    The showstopper 'I saw error 'xx' in my logs', now what?

    That's a fair point but everyone has to start somewhere, and the typical way to learn what a syslog means is looking up the messages. If a thread like this stops 90% of the needless questions about it, then so much the better.
  17. Dabombber

    The showstopper 'I saw error 'xx' in my logs', now what?

    Good idea since most "that's normal, ignore it" responses are buried in release threads. MMM DD HH:mm:ss kernel: ethX: received packet with own address as source address MMM DD HH:mm:ss WLCEVENTD: ethX: Disassoc XX:XX:XX:XX:XX:XX MMM DD HH:mm:ss WLCEVENTD: ethX: Assoc XX:XX:XX:XX:XX:XX...
  18. Dabombber

    Extend "service" to Entware services

    I got a bit annoyed with not seeing any output from this, so I moved the interception from service-event to a function in profile.add. Probably better this way since it only works from SSH. I also added two actions for dnsmasq; 'reconfigure' to match rc.func, and 'reload' because I will never...
  19. Dabombber

    How To Improve Shell Script Code Quality and Readability

    Atom does seem to be more extensible than np++, but it's a lot closer to a full ide than a quick and dirty text editor which is where np++ shines. It's also pretty easy to set up shellcheck in np++, there's two plugins available in the stock plugin manager. Using the linter plugin: Or the...
Top