script

  • 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. M

    deSEC DDNS update script

    After failing to create a custom Inadyn DDNS configuration for deSEC.io that would update both IPv4 and IPv6, I've created a script that updates my deSEC domain IP. It is a simple yet effective script that updates a deSEC.io domain name with the latest WAN IPv4 and IPv6 addresses. It uses...
  2. A

    Restart WireGuard client when fails

    Hello, I'm using WireGuard client on my RT-AX88U. Sometimes when I lost Internet my WireGuard client doesn't reconnect automatically the connection. I do it manually by accessing VPN -> VPN Client -> Wireguard and clicking on Apply. I need your help to writing script to test connectivity...
  3. T

    ASUSWRT_Samba_Fixer no longer works after reboot

    Hello folks I have been using an Asus Rt-AC86U router for several years. For me it is very important that I can access my individual SSDs and HDs on the USB3 port individually via Samba. That's why I installed the Samba_Fixer (https://github.com/dnlongen/ASUSWRT_Samba_Fixer). It ran for years...
  4. ExtremeFiretop

    MerlinAU MerlinAU v1.1.1 - The Ultimate Firmware Auto-Updater (Now available in AMTM)

    Hello SNB Community, We're pleased to introduce an exciting new add-on for Asuswrt-Merlin: MerlinAU (Merlin AutoUpdate). This tool is designed to streamline and automate firmware updates, making your router maintenance simpler and smoother than ever. What's MerlinAU All About? MerlinAU is...
  5. kallefornia

    Philips Hue: lights off when nobody is home [script]

    This is a relatively simple bash script that turns off all lights when all members of a household have left and turns them back on again when one of them comes back. Basically, it continually checks the list of clients currently connected to the router's WiFi network(s) for pre-defined IP...
  6. SwizItalo

    Simple script not launching on boot

    So i made a script at "/jffs/scripts" (the folder scripts wasnt there, so i made it) Enabled JFFS custom scripts and configs on webui chmod 777 file services-start The script runs ok when i manually execute it "/jffs/scripts# sh services-start" but it won't launch on start up This is content...
  7. thebigfing

    Entware Is it posible to mount google drive with rclone

    Is it possible to mount Google Drive with Rclone and share this with samba?
  8. B255ea006

    How do i find out which addon or script/ setting prevents my devices to connect to the router and the internet

    Hi, :) i have installed and running a view addons and since a now i cannot connect to the router with my Android devices or Printer/ Scanner. Only my Windows Laptop is able to connect to the router and the internet. I am quessing it is a conflic in the addons because if i pull out the USB stick...
  9. AppleBag

    Script to auto-manage Clients list in NVRAM?

    I posted this an another thread but it was overlooked, so I'll ask here; is there a script or something that I can add that will monitor my clients list for clients that haven't connected in X amount of time, and if so, save it's info (MAC + name and chosen icon) to a file, remove it from NVRAM...
  10. SwizItalo

    Script to enable radio at start up

    Hello, i'm a newbie here. My router with Merlin have a problem that sometimes radio may turn off after power loss. So i need a script to force radio on when starts. What i did is modify /jffs/scripts/services-start #!/bin/sh sleep 20 nvram set wl0_radio=1 nvram set wl1_radio=1 service...
  11. D

    [SCRIPT] sh to check vpn client status and auto reconnect if disconnected

    Hello community, my vpn service provider does not support keep alive in their setting, so i need another way to check if vpn client is connected and auto reconnect if it is disconnected, a sh script should do the job. The scipt should do something like this: nvram get vpn_client1_state...
  12. kilex00

    Solved 4G-AC86U WAN disconnects randomly

    So, I got a new 4G router cause I live in a rural area and DSL line here is plain trash (4Mbps). I got Asus's 4G-AC86U and got my provider's (A1) SIM into the router, but the thing is sometimes the internet is up for an entire day, and at other times it just plain breaks after a few hours. By...
  13. XIII

    Are there limitations when using cron?

    Since 1Password now offers a nice CLI that works on our router, I'm trying to make my scripts more secure, by no longer hardcoding credentials. However I notice something weird when testing this: Experiment 1 /jffs/scripts/test1: #!/bin/sh logger test1 /opt/bin/op run...
  14. Yota

    A solution: let the router in AP mode or AiMesh node receive commands from the main router

    I ran into this question a few weeks ago while writing a script: How to make the main router and node execute some commands synchronously. At first I thought this was impossible, because for AP mode, the main router does not communicate with the AP, and for AiMesh because the code is closed...
  15. S

    same variable name in different bash scripts

    Hi! I have two different bash scripts. They perform independent tasks from each other, but can possibly run at the same time (during boot process). In both sripts there are variables (for instance to count loops). Can it cause confusion if both scripts use a varibale with the same name or does...
  16. eibgrad

    Tutorial Adding IP Networks to the ASUS RT-AC68U (et al.)

    Overview The following script adds support for the creation of additional IP networks for the ASUS RT-AC68U running Asuswrt-Merlin firmware. https://pastebin.com/hvHHic1V The impetus for the script came from another forum member. The original intent was to simply add a single VLAN to the...
  17. M

    Repurpose physical buttons to trigger custom scripts

    Any chance we can repurpose the physical buttons on the router (LED/WPS,wifi-on/off) to trigger custom scripts or actions? Thanks!
  18. L

    Radio off command

    Hello all, My goal is to enable/disable WIFI with a cron job on one of my aimesh node. I connect via ssh to my aimesh node and I can't even make work simple command like "radio off", "wl radio off", "wl -i eth1 radio off" when I run them, wifi is still enabled. After using those command, how...
  19. S

    Entware How do I write my own script for entware

    Hello, I need Your help. In my Asus RT-AC55U router is installed Entware. It works good (opkg and other commnads). But I need to write my own sript to be runned at start up router. So in /opt/etc/init.d I have script for dnscrypt-proxy and I need to write another for rclone. Also for iptables I...
  20. A

    amtm Script to randomize MAC address daily

    I would request to have an amtm script to randomize the mac address of ASUS merlin on daily basis or predefined interval. the reason is that my ISP doesn't change my IP address even if I'm resetting the router and they said that the only way to change the IP address if your router has the...
Top