+Peace be with you.
Could you help?..
Need a “walk-through,” for how to edit scripts (for this topic’s function), as I am (more or less) clueless & new to all of this.
History:
@Nikolas I just recently tried copying and pasting your script as a 100% replacement of the “switchaction” file on my AR150 mini-router.
(Yes, I am completely new to this).
Unfortunately, I wasn’t able to determine that this — alone — worked perfectly, for the desired outcome… — (that desired outcome being, like this thread is named, to have one of my two external buttons be changed, in order now to be able to switch the wifi on or off).
If you don’t mind… :
Could you actually walk me through — (step by step) — describing how to modify this script (or scripts), to get this to function properly?..
This is my first time ever messing around with these codes. So, I need every bit of help (& detail) you can mention.
In fact, it’s seems like a miracle that I successfully SSH’d into my router, and then looked into the files using WinSCP; (etc.)
But, beyond that, I’m pretty clueless as to what the code there (that I’m looking at) actually means; how to modify it; how to test it (and to verify that any modifications are then working); etc.
In case anyone can offer to help, here are the particulars:
(1) Router model = gl-AR150
(2) Firmware = openwrt-ar150-3.100-1218.bin
(3) I just completely re-flashed the above firmware (3.100), in order to “start clean” — (after having somehow disabled[?] my iPhone-tethering function, using WinSCP, just before that)
Would you need to know anything else?..
Any help, out there?..
Many thanks, in advance.
+May God reward you.