What's new

Run custom script on official ASUS firmware

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

AsusNoobie

New Around Here
Hello. How can I run my script (my.sh) on the official ASUS firmware? What I have tried.

1) add to /etc/init.d/ - but its mount locked READ ONLY.
2) try run from ssh with NOHUP + & , but script stop then close ssh session.
3) try add to /jffs/.asusrouter , but in the latest updates, this feature has been disabled.
4) after searching, I found methods to add a script to the "USB connection" event, but I don't have a USB port on my router, so those options are not available to me.
5) i found method add scripts to /jffs/scripts/myscript.sh , i havent folder scripts, added, place script and nothing happing, i thing in the latest updates, this feature has been disabled.
 
Last edited:
Stock firmware doesn't support custom scripts. There is a workaround that may work but it relies on your router having a USB port.
 
If you're comfortable with ssh and a text editor of your choice, you can follow this guide:


I have verified it on my GT-AXE16000 AiMesh node running the latest available stock firmware in order to launch a script following boot (and verify on periodic basis using cron) to modify the 6 GHz SSID to match my primary network.
 
If you're comfortable with ssh and a text editor of your choice, you can follow this guide:


I have verified it on my GT-AXE16000 AiMesh node running the latest available stock firmware in order to launch a script following boot (and verify on periodic basis using cron) to modify the 6 GHz SSID to match my primary network.
That's the same thing I linked to in my previous post. As I noted though it requires a router with a USB port which the OP doesn't have.
 
That's the same thing I linked to in my previous post. As I noted though it requires a router with a USB port which the OP doesn't have.
Oops! I missed that detail.
 
Thinking further, I'm not sure why it requires a USB port.
 
Thinking further, I'm not sure why it requires a USB port.
It works by exploiting the router's Download Manager support. I'm guessing that if your router doesn't have a USB port then it also doesn't support the Download Manager hooks. Just guessing though so might be worth a try anyway.
 
It works by exploiting the router's Download Manager support. I'm guessing that if your router doesn't have a USB port then it also doesn't support the Download Manager hooks. Just guessing though so might be worth a try anyway.
Makes sense.
 
Use cru, or append " &" to end of command.
 

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!

Staff online

Top