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. S

    prevent a jffs script to be run twice in parallel

    Hi! When I power on/reboot my AC86-router, it runs the '/jffs/scripts/wan0-connected' script twice. I can also see the wifi appear, then disappear after a few seconds and come back again after a few more seconds. This causes the commands in the above said script to be run twice and in...
  2. ExtremeFiretop

    MerlinAU MerlinAU v1.3.6 - The Ultimate Firmware Auto-Updater (GNUTON SUPPORT!)

    Hello SNB Community, This project is hosted on our GitHub Changelog and release notes: Here Summery: We're pleased to RE-introduce the add-on for Asuswrt-Merlin: MerlinAU (Merlin AutoUpdate). MerlinAU.sh is a versatile shell script designed to automate the firmware update process for ASUS...
  3. decedion

    amtm "LED control": Reverse on/off when time is dynamic

    I have installed the "LED control" (lc) script using dynamic time because where I live (Denmark) the light/dark period changes a lot during the year. I have also coupled this with the AURA RGB. But the problem is that this script in dynamic mode decides that the AURA/leds turn on during the day...
  4. 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...
  5. 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...
  6. 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...
  7. ExtremeFiretop

    MerlinAU MerlinAU v1.2.6 - The Ultimate Firmware Auto-Updater (**Thread closed due to age**)

    Hello SNB Community, -ORIGINAL THREAD CLOSED DUE TO AGE; NEW THREAD STARTED HERE: https://www.snbforums.com/threads/merlinau-v1-2-7-the-ultimate-firmware-auto-updater-amtm-addon.91326/ We're pleased to introduce an exciting new add-on for Asuswrt-Merlin: MerlinAU (Merlin AutoUpdate). This tool...
  8. 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...
  9. 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...
  10. 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?
  11. 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...
  12. 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...
  13. 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...
  14. 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...
  15. 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...
  16. 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...
  17. 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...
  18. 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...
  19. 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...
  20. 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!
Top