• 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!

Search results

  1. jacklul

    Entware Pi-hole directly on the router? Yes!

    Update released following upstream: 2025.11.27-1 https://pi-hole.net/blog/2025/11/27/pi-hole-ftl-v6-4-web-v6-4-and-core-v6-3-released/ Some memory optimizations are mentioned.
  2. jacklul

    Collection of scripts for stock firmware

    My bad, readlink -f will follow the symlink to the asuware.arm directory. I replaced the code with something simplier
  3. jacklul

    Collection of scripts for stock firmware

    Hmmm, I dunno why it doesn't work then. I assume you see "Mounted '/tmp/mnt/drivename/entware' on /tmp/mnt/drivename/asusware.arm" instead of "Mounted '/tmp/mnt/drivename/entware' on /tmp/opt" in the syslog? Maybe try rebooting the router if it is not a problem, unless you already did that earlier.
  4. jacklul

    Collection of scripts for stock firmware

    Did you update via jas update or fetched the script manually? I force-pushed to the repository later and maybe you have the outdated version. The earlier version did not remove the link, so the mount command still followed /tmp/opt to /tmp/mnt/drivename/asusware.arm and mounted over it instead.
  5. jacklul

    Collection of scripts for stock firmware

    The code at the beggining of the script should resolve /opt once, so $opt should become /tmp/opt, then code in mount_opt should delete /tmp/opt and make it a regular directory so mount --bind can work. I would like to avoid putting any mounts on the USB device itself as it could lead to some...
  6. jacklul

    Collection of scripts for stock firmware

    In the meantime I also pushed another change that now only resolves one level of the symlink and deletes it (/tmp/opt in your case) before mounting to make sure the mount is not created on the asusware directory but whatever /opt is pointing to. This change might be incompatible with the...
  7. jacklul

    Collection of scripts for stock firmware

    Pushed another change to the develop branch, let me know if it works.
  8. jacklul

    Collection of scripts for stock firmware

    What about df /opt 2> /dev/null | grep -Fv "/dev/root" | tail -n +2 ? I've renamed is_entware_mounted to is_opt_mounted to better reflect what that function is for, it now has two conditions and excludes /dev/root. If I resolve the symlinks they will lead me to asusware directory, which is not...
  9. jacklul

    Collection of scripts for stock firmware

    The workaround is utilizing something included in the firmware, you can't undo /opt=>/tmp/opt symlink as the filesystem is read-only, that's why bind-mount is required here. Is 'drivename' the actual label of your USB device? Does the real label contain any unusual characters? Try entware script...
  10. jacklul

    Collection of scripts for stock firmware

    This is really weird behavior, no idea why would mounting entware folder show up as asusware.arm What device? Is it newer or older model than mine? Does the Entware actually start? What is the output of: cat /proc/mounts df
  11. jacklul

    Collection of scripts for stock firmware

    This might happen if you unplug the stick after Entware script mounted /opt as Entware /tmp/mnt/drivename/asusware.arm is not Entware folder by the workaround / Asus apps, this is caused by Asus app scripts I am personally using both usb-mount-script and entware script and never seen this happen...
  12. jacklul

    Entware Pi-hole directly on the router? Yes!

    Also, if I remember correctly, ps only shows virtual allocations, not real usage. Only the MEM% is real usage, I think. Correct me if I'm wrong here. You might want to check memory usage percentage displayed in Settings->System.
  13. jacklul

    Entware Pi-hole directly on the router? Yes!

    Settings -> Privacy, set "Maximum number of days to keep queries in the database" to something low like 8 days and wait few hours.
  14. jacklul

    Entware Pi-hole directly on the router? Yes!

    That memory usage could be caused by the size of pihole-FTL.db, for comparison mine is around 65M and I keep only last 30 days of queries in it.
  15. jacklul

    Entware Pi-hole directly on the router? Yes!

    What are the sizes of gravity.db and pihole-FTL.db?
  16. jacklul

    Entware Pi-hole directly on the router? Yes!

    How long have you been running it? Maybe there is memory leak somewhere again. In FTL v6.3 dev version there was a memory leak that I reported and it got fixed. FTL periodically performs a maintenance of pihole.FTL.db database where it has to load it completely into the memory, if the database...
  17. jacklul

    Collection of scripts for stock firmware

    grep -v "grep" | grep -F "stubby" usually can be replaced with a trick like this grep "[s]tubby" no real speed benefits since we are replacing two calls with one regex call but we shorten the code little for easier read
  18. jacklul

    Collection of scripts for stock firmware

    That's interesting, why would there be two instances running off /etc/stubby/stubby-0.yml config file? I've updated the script to use a loop, just like in my custom-configs script.
  19. jacklul

    Collection of scripts for stock firmware

    Expading the code I posted earlier, this might work: #!/bin/sh # save this as /jffs/scripts/stubby_sdn0.sh # add this line to /jffs/scripts/usb-mount-script: # cru a stubby_sdn0 "*/1 * * * * /jffs/scripts/stubby_sdn0.sh" # to disable after enabling: # cru d stubby_sdn0 if ! grep -Fq "Modified...
  20. jacklul

    Entware Pi-hole directly on the router? Yes!

    Did you follow the installation guide, specifically for Merlin firmware?
Back
Top