What's new

scMerlin scMerlin v2 - Service and script control menu for AsusWRT-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!

You have a sharp eye, I didn't even see it. Thanks for noticing. As I just posted in another thread, I can barely read my own screenshots. It's time for a visit to the optician soon, I guess. Jeez, I'm getting old.
assuming i didn't f**k up the regex (it worked on my routers, honest!), can you try updating (still on develop) and check now?
 
There was no update available through the WebUI but running
Code:
scmerlin develop
downloaded a new version and I think @dave14305 will be pleased with you (as am I).

Screenshot_2021-04-06 scMerlin.png
 
  • Like
Reactions: pdc
Can't reboot since wife is working from home currently, I've edited out the double entry in /tmp/menuTree.js which has fixed it!

Pretty sure I was on V2.2.1 before the WebUI update and I had been viewing files with WinSCP when trying to find out why I was missing the NVRAM and JFFS values. I did copy and paste a code block to create my earlier post, not intending to change anything but I guess it's possible I did.

In /tmp/var/wwwext I still have a 'user3.asp' file, is it ok to delete it or will a reboot take care of that?

Many thanks for your help and my apologies if this was caused by my own fat fingers!
ah if you'd amended the user* page then the md5 wouldn't match and a new mount would be created
the non-referenced page can be safely deleted from /www/user yes
 
v2.2.3 is now available
Changelog:

  • FIXED: Processes using >100% VSZ in top would not be shown correctly in WebUI - thanks for reporting this @MvW
Believe me, the pleasure was all mine :D

Edit: But truth be told, it was actually @dave14305 who had to play the PITA all afternoon (CEST), he spotted it. I gotta give credit where credit is due.

Now looking for a guiding dog for the (nearly) blind which is able to read screenshots and preferable has some knowledge of shell scripting.
 
Last edited by a moderator:
Addons are only as reliable as their GUI Buttons which I must say are still unreliable after a reboot. Especially Unbound!

I just finally upgraded to 386.2 and on reboot of the system this time Unbound and scMerlin disappeared. I manually added back the two tabs (Unbound -> user2.asp, and scMerlin -> user5.asp).

FlexOS got in first with user1.asp (in a different section of course), and then Unbound seems to have gotten in second as user2.asp, then ntpMerlin (user3) and spdMerlin (user) and scMerlin got in last (user5.asp).

Not sure who is erasing entires... but there is a bug. I added the exact same locking code that the other plugins added. Any clues?
 
I learned a lot of lessons when developing my addons:
  • If your webpage already has a page assigned in menuTree.js, reuse it
  • Remove any previous references to your page (by addon name) in menuTree.js
  • Remove any previous references to your assigned page (by filename) in menuTree.js
  • Using md5 hashes during an update will guarantee your addon page will get a new filename if you don't follow bullet #1
  • I always unmount menuTree.js before doing the sed to update it
 
I learned a lot of lessons when developing my addons:
  • If your webpage already has a page assigned in menuTree.js, reuse it
  • Remove any previous references to your page (by addon name) in menuTree.js
  • Remove any previous references to your assigned page (by filename) in menuTree.js
  • Using md5 hashes during an update will guarantee your addon page will get a new filename if you don't follow bullet #1
  • I always unmount menuTree.js before doing the sed to update it

Thanks. I do follow point 1, if the md5 from before, or now matches, I reuse. Double tabs was never a problem, and doesn't appear to be now.

Could try the last bullet point, unmount before doing sed. Hmm..
 
Thanks. I do follow point 1, if the md5 from before, or now matches, I reuse. Double tabs was never a problem, and doesn't appear to be now.

Could try the last bullet point, unmount before doing sed. Hmm..
You also have a pending PR from Jack to update the code for the Addons redirect page, so it could be that you're not finding the right location to mount the page. You might be working at cross-purposes with Jack's scripts until you merge that PR.
 
Believe me, the pleasure was all mine :D

Edit: But truth be told, it was actually @dave14305 who had to play the PITA all afternoon (CEST), he spotted it. I gotta give credit where credit is due.

Now looking for a guiding dog for the (nearly) blind which is able to read screenshots and preferable has some knowledge of shell scripting.
well, v2.2.3 isn't the only release i'm hoping to do today :)
I just finally upgraded to 386.2 and on reboot of the system this time Unbound and scMerlin disappeared. I manually added back the two tabs (Unbound -> user2.asp, and scMerlin -> user5.asp).

FlexOS got in first with user1.asp (in a different section of course), and then Unbound seems to have gotten in second as user2.asp, then ntpMerlin (user3) and spdMerlin (user) and scMerlin got in last (user5.asp).

Not sure who is erasing entires... but there is a bug. I added the exact same locking code that the other plugins added. Any clues?
I submitted a PR on your github to fix this...
 
You also have a pending PR from Jack to update the code for the Addons redirect page, so it could be that you're not finding the right location to mount the page. You might be working at cross-purposes with Jack's scripts until you merge that PR.
My PR will fix it, I'm pretty confident because this started happening when I fixed the Firefox issue but neglected to realise unbound used the same code. I wasn't using the unbound gui at the time.
 

Latest threads

Sign Up For SNBForums Daily Digest

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