What's new

Any way to disable/prevent start of a script without uninstalling it ?

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

saison2023

Regular Contributor
Hello,

Sorry in advance if this was already asked, maybe I didn't use the good keyword to do my research.

Is there any way to disable/prevent start of a script without uninstalling it ?
As an example, I would like to disable and prevent AdguardHome from running (but to keep everything in place) to test Diversion.

I saw that I can manipulate/comment some lines on the scripts inside "/jffs/scripts" directory but I am wondering if there is an (hidden) option inside amtm's menu to achieve this.

Thanks
 
I'm not sure if there's an automated way, but worst case, you could backup the config and jffs first, remove AdGuard, test Diversion, then restore. Frankly, that's what I would do normally if I had *any* reservations about the side-effects of installing a script. IOW, always give yourself the ability to return to a KNOWN working config.
 
Hello,

Sorry in advance if this was already asked, maybe I didn't use the good keyword to do my research.

Is there any way to disable/prevent start of a script without uninstalling it ?
As an example, I would like to disable and prevent AdguardHome from running (but to keep everything in place) to test Diversion.

I saw that I can manipulate/comment some lines on the scripts inside "/jffs/scripts" directory but I am wondering if there is an (hidden) option inside amtm's menu to achieve this.

Thanks
You could simply just remove execute permissions
 
You could simply just remove execute permissions

I don't know the specifics of AdGuardHome, but simply removing execute permissions may not work for all shell scripts, especially those that get explicitly launched like this:
Bash:
sh /full/path/to/addonscript.sh
IOW, I don't think there's a one-size-fits-all solution to prevent any script from executing, short of modifying each script itself by adding an "exit 0" line right after the very 1st line:
Bash:
#!/bin/sh
exit 0
So, yes, technically the script still begins to "execute" but exits immediately.
 

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