What's new
  • 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!

Run custom scripts with stock firmware?

yelo3

Regular Contributor
Is it possible to run custom scripts (from USB or /jffs) using the stock firmware? (without merlin firmware)
Thanks
 
i asked a same as you but you can not nothing to do with stock firmware....you have to update to merlin firmware for using costum scripts over jffs....

sent from Kodi 17 Krypton
 
with entware installed, then there´s custom script support ???

please complain...

-----------------------------------------------------------------------------------
Edit:

Yes under /opt/etc/init.d/ you can put your own scripts to start services or link in a script another script... thats awesome... ^^

So "IT´S DEFINITLY YOU CAN RUN CUSTOM SCRIPTS ON STOCK FIRMWARE..."
See to link mstombs has posted! thx... mstombs
-----------------------------------------------------------------------------------
 
Last edited:
It depends on what you actually want to do in that script. You won't be able to easily manipulate the firewall rules for instance, as you won't be able to chose at which moment during boot your script will execute.
 
I think this actually takes advantage of some old legacy tomato code that still remains in the USB hotplug routines (was originally designed to send setup strings to USB attached printers).

I played with it at one point and the part of it that identifies what type of device appears to be broken (it only recognizes USB drives), and the only trigger is the USB drive coming up.
The script is entirely stored in nvram, so needs to be relatively short (I didn't try if you could shell out to another script on another location).
 
Once a shell script is run, one can fork off a separate process to run whatever he wants with a stack possibly up to as deep as available RAM. So NVRAM is only needed to store a very tiny script to pull it off, not a limitation of any sort...

There is another way to run custom scripts in stock firmware. Most stock FW comes with a way to install "Download Master". It installs a tiny version of optware (?). Once that's installed, wipe off most junk but leaving the essential startup/shutdown scripts to hook up to run e.g. Entware-ng.
 
Is installing and using download master incompatible with installing and using entware-ng ???

Yes. Download Master relies on Optware, which would conflict with Entware.
 

Similar threads

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