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

    SOLVED: Configure/ customise Merlin shell?

    More specifically, it's BusyBox's ash. Documentation is pretty slim, especially considering a lot of the features can be toggled during compile time, your best bet would be to look at POSIX compatibility. There's a general ash manual here, and the compile options are here. So it'd be the base...
  2. Dabombber

    wildcard cert for DDNS Let's Encrypt

    Asus's letsencrypt stuff is closed source, so inadyn.conf.add (a Merlin addition) most likely wont generate additional certificates. You might want to keep the Asus dns in the WebUI and let it handle certs for the web server, and use inadyn.conf.add for cloudflare ddns + my script for cloudflare...
  3. Dabombber

    wildcard cert for DDNS Let's Encrypt

    The custom option is required for ddns-start scripts, and is mutually exclusive to using inadyn. So you could either use custom and call inadyn from ddns-start; Use the WebUI to configure one host and add the other through inadyn.conf.add or inadyn.postconf; Or set both hosts in inadyn.conf...
  4. Dabombber

    amtm amtm - the Asuswrt-Merlin Terminal Menu

    @thelonelycoder Thoughts on this thread? I'm just guessing what the problem might have been, you'd know more about the insides than me.
  5. Dabombber

    (Solved) Need a smart sed, grep or awk command

    And in the typical fashion of "oh busysbox supports that" after finishing everything. Word boundaries work in sed's regex printf '%s\n' 'a ba' 'b a bab' 'abc a' | sed 's/\<a\>/X/' X ba b X bab abc X
  6. Dabombber

    no swap configured after reboot

    I think I might know what caused it. The line to add the swapon command is sed -i "2i swapon $swl # Added by amtm" /jffs/scripts/post-mount which inserts it in the second line. But if there's only one line (eg '#!/bin/sh') then it wont get added. This might be more reliable sed -i "1a swapon...
  7. Dabombber

    no swap configured after reboot

    It's hard to tell which bit amtm is failing on, but it should have added the swap file before the "added missing swap file" line. Are there any weird characters in your drive name? What does "find /tmp/mnt/*/myswap.swp" show?
  8. Dabombber

    no swap configured after reboot

    It's a bit odd that it isn't sticking, what does your /jffs/scripts/post-mount file look like ("ls -l /jffs/scripts/post-mount" and "cat /jffs/scripts/post-mount")? I would have said it was because the drive is NTFS, but it looks like you reformatted it with amtm, was that to ext3/ext4?
  9. Dabombber

    (Solved) Need a smart sed, grep or awk command

    I think you still need to escape "." characters, otherwise whitelisting "a.c.com" would unblock "abc.com". And if the whitelists are user editable they might have other special sed characters which will break things entirely. There's also a problem if a line with a single host is removed, you...
  10. Dabombber

    (Solved) Need a smart sed, grep or awk command

    It might be better to put the whitelist into a "|" seperated string and use "sed -Ei 's/ (regexstring)( |$)/\2/g' blockinglist". The reason being you'll need to escape them anyway since "." matches any character (a.c.com = abc.com). Usually I'd test before posting code, but I'll leave that up...
  11. Dabombber

    What clever SSH shortcuts do you use?

    Obviously there's lots of alternatives for desktop OS's, notepad++ plugins to full IDEs. Having shellcheck on the router itself could help stop silly mistakes while making quick and dirty edits though ssh. How does $(Smart_LineInsert "$FN" "$(echo -e "sh /jffs/addons/unbound/unbound.postconf...
  12. Dabombber

    What clever SSH shortcuts do you use?

    Unfortunately not, shellcheck is written is haskell which... well there's info here. It might be easier to transliterate shellcheck into another language than compile it for routers.
  13. Dabombber

    Troubleshooting ntp on boot

    It's amas sync junk, part of cfg_server. It might be needed and/or generated by the webUI.
  14. Dabombber

    Lets Encrypt not updating, or?

    Nope, it isn't needed unless you want to use the standalone mode of acme.sh which needs socat. You may wish to edit the locations ACME_DIRECTORY and ACME_LOG to somewhere else if you don't have entware installed though (anywhere except the temporary storage should work). It doesn't matter where...
  15. Dabombber

    wildcard cert for DDNS Let's Encrypt

    I think I see the problem there. I was using readlink so I didn't have to worry about any entware load order issues, which fails if the file doesn't exist. I might just remove all the readlinks, since it shouldn't make a difference.
  16. Dabombber

    Lets Encrypt not updating, or?

    The acme implementation Asus uses is just this script, so it's easy enough to install it yourself (although it'll be missing socat, but you can get that through entware). There's some more info on installing it here.
  17. Dabombber

    wildcard cert for DDNS Let's Encrypt

    The log location is saved into the account conf file (defaults to /opt/share/acme/data/account.conf) so it's not needed later. ;)
  18. Dabombber

    wildcard cert for DDNS Let's Encrypt

    Not at the moment, it's not too complicated though. It downloads and installs acme (defaults to /opt/share, but it shouldn't require entware to be installed so anywhere works) with some options disabled, which it fills in using the aliased command (makes it work with the routers temporary home...
  19. Dabombber

    wildcard cert for DDNS Let's Encrypt

    If you use the "Import/Persistent Auto-generated" option, it'll read from /jffs/.cert/cert.pem and /jffs/.cert/key.pem so you can just copy to there after an update (or use the acme.sh arguments --fullchain-file and --key-file).
  20. Dabombber

    wildcard cert for DDNS Let's Encrypt

    I think the letsencrypt stuff is closed source. If you want more options you can run acme.sh manually, although it's installed without most of the DNS APIs. If you want the APIs you can install it yourself, I made a script to do that here.
Top