What's new

How to run a script with merlin?

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

fitnesspmm

Regular Contributor
Hi,

I received a script to run with Merlin where I don't know how to load it. What do I need to do?

I've had a look around but I can't find a user guide anywhere.
 
Last edited:
I created the directory /jffs/scripts/ on the External Drive attached to my Router.

I created a file called 'nat-start' and put it in the directory /jffs/scripts/

So now it will automatically run everytime the router reboots?
 
I have this line in my script

chmod 0755 /jffs/scripts/services-start
reboot

Do I need to change the file name to services-start instead?
 
Try and read the wiki again.

While Asuswrt-Merlin only adds a limited number of new features over the original firmware, a lot of customizations can be achieved through the use of user scripts. These will allow you to set up custom firewall rules, create jobs that can be run at scheduled intervals, or start new services.

Those scripts are stored in the internal non-volatile flash in the JFFS partition. Support for these scripts must be enabled, under Administration -> System on the webui.
 
/jffs is a folder within the root of your router (in flash), it's not a directory on your hard disk.
 

Similar 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!
Top