What's new

amtm amtm - the Asuswrt-Merlin Terminal Menu

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

I've noticed this before, and it happened again today, so I mention it here in case in might be possible to fix.

When my ISP connection is down, amtm will not load. It would be nice if amtm could be used when the internet is down.
How are you opening amtm? By using the install command from my website by any chance?

Know that once installed, amtm can be started at any time by entering
Code:
amtm
into the terminal.
If that should fail, which really should not, you could try entering the full path to amtm:
Code:
/jffs/scripts/amtm

amtm has no code that checks for an internet connection when opening. There is no heartbeat, no check to my server.
amtm happily opens in offline mode. However, it cannot install third party software and will not be able to check for updates. That would require a working internet connection.
 
I type amtm when offline, it starts to display the menu and then just hangs. It does this every time my ISP is offline. I will look at your code and see if I can tell where it might be hanging.
 
I type amtm when offline, it starts to display the menu and then just hangs. It does this every time my ISP is offline. I will look at your code and see if I can tell where it might be hanging.
What is the last line that still fully displays before it hangs?
 
This is what is displayed:

amtm 3.0 by thelonelycoder
RT-AC86U (aarch64) FW-384.14 @ 192.168.1.1
The SNBForum Asuswrt-Merlin Terminal Menu

1 open Diversion

It hangs partially through the "1 open Diversion" line, before the version number.
I'm not sure what the code is doing, but I see something that looks like comparing version numbers using a remote url.
 
This is what is displayed:

amtm 3.0 by thelonelycoder
RT-AC86U (aarch64) FW-384.14 @ 192.168.1.1
The SNBForum Asuswrt-Merlin Terminal Menu

1 open Diversion

It hangs partially through the "1 open Diversion" line, before the version number.
I'm not sure what the code is doing, but I see something that looks like comparing version numbers using a remote url.
Again, there is no code that would require an internet connection. That $remoteurl you are seeing only kicks in when checking for updates with u.
The version number is retrieved directly from the local Diversion config file to display it.
 
I type amtm when offline, it starts to display the menu and then just hangs. It does this every time my ISP is offline. I will look at your code and see if I can tell where it might be hanging.
Thank you for looking into it. It's not important, I just can't use amtm when offline.
Oh :oops:, thanks for bringing that up. Due to a somewhat shoddy coding habit there is code running that should not when starting up amtm. It should only run when checking for updates.
I'm reviewing the affected code, it will be fixed with the next amtm version.
Thanks for reporting!

What versions of amtm and Diversion are you running? And is Skynet installed?
 
I have a similar problem; amtm often takes a very long time between showing option 1 (Diversion) and option 2 (SkyNet).

Versions:
- amtm 3.0
- Diversion 4.1.8
- SkyNet 7.0.9
 
I have a similar problem; amtm often takes a very long time between showing option 1 (Diversion) and option 2 (SkyNet).

Versions:
- amtm 3.0
- Diversion 4.1.8
- SkyNet 7.0.9
run DCL (when in AMTM), delete the logs when prompted (option 1), then that shall fix it - at that has fixed it in my case, as I have the same situation since months.
 
Now that the cat is out of the bag, I'll make it official.
Starting with Asuswrt-Merlin 384.15, amtm is now part of the firmware. Its first release has been included in the current 384.15 alpha version.

Some info for this new exiting adventure:
- @RMerlin initiated the addition of amtm to the firmware, I have been very busy lately making that happen ;)
- There are now two versions of amtm, the regular release and the firmware release. The latter has "FW" added next to the version number to distinguish it. Also the a about section mentions the firmware version.
- Both versions of amtm act, feel and behave the same way.
- The version numbering has changed to a three digit version number.
- The firmware version is at v3.1.0, while I still work to clear some bugs to release and replace the current regular 3.0 released version.
- amtm is now modular, with each script having its own *.mod file, stored at /jffs/addons/amtm. The files are downloaded and deleted automatically, depending on the state of the scripts.
- Both versions will receive updates at the same time.
- The regular amtm version retrieves updates through diversion.ch, while the firmware version uses a subdomain of asuswrt-merlin.net. It currently points back to diversion.ch.
- When detected, the regular amtm v3.1.0 will automatically start the firmware version.
- Using and starting amtm will be as simple as entering amtm into the SSH terminal. There is no installation required.
- The firmware version cannot be removed or modified. Instead of the r for remove, this version has an r for reset. It only deletes the files in /jffs/addons/amtm.

That's it for now. Now let me fix and publish that regular amtm v3.1.0 release and the first update for the firmware release.

https://github.com/RMerl/asuswrt-merlin.ng/blob/master/Changelog-NG.txt

Edit: Screenshot of amtm 3.1.0 FW

dhqUUrL.png
 
Last edited:
run DCL (when in AMTM), delete the logs when prompted (option 1), then that shall fix it - at that has fixed it in my case, as I have the same situation since months.
The opposite in my case...

amtm was working fine today, until I deleted the DCL logs.
 
Now that the cat is out of the bag, I'll make it official.
Starting with Asuswrt-Merlin 384.15, amtm is now part of the firmware. Its first release has been included in the current 384.15 alpha version.

Some info for this new exiting adventure:
- @RMerlin initiated the addition of amtm to the firmware, I have been very busy lately making that happen ;)
- There are now two versions of amtm, the regular release and the firmware release. The latter has "FW" added next to the version number to distinguish it. Also the a about section mentions the firmware version.
- Both versions of amtm act, feel and behave the same way.
- The version numbering has changed to a three digit version number.
- The firmware version is at v3.1.0, while I still work to clear some bugs to release and replace the current regular 3.0 released version.
- amtm is now modular, with each script having its own *.mod file, stored at /jffs/addons/amtm. The files are downloaded and deleted automatically, depending on the state of the scripts.
- Both versions will receive updates at the same time.
- The regular amtm version retrieves updates through diversion.ch, while the firmware version uses a subdomain of asuswrt-merlin.net. It currently points back to diversion.ch.
- When detected, the regular amtm v3.1.0 will automatically start the firmware version.
- Using and starting amtm will be as simple as entering amtm into the SSH terminal. There is no installation required.
- The firmware version cannot be removed or modified. Instead of the r for remove, this version has an r for reset. It only deletes the files in /jffs/addons/amtm.

That's it for now. Now let me fix and publish that regular amtm v3.1.0 release and the first update for the firmware release.

https://github.com/RMerl/asuswrt-merlin.ng/blob/master/Changelog-NG.txt

Edit: Screenshot of amtm 3.1.0 FW

dhqUUrL.png

Great news but one question. If we have a regular amtm version installed should we ( or the regular amtm itself automatically ) delete it after upgrading to 384.15? What's the point in having two separate amtm versions if they're identical in every way?
 
One only works with the latest 384.15 firmware...its integrated in it. The regular works with older fws. Not everyone updates their router to the latest FW as soon as their release.
 
Is this implemented in the Alphas already? I'm on the most current one and I still see "remove" instead of "reset". I see that your announcement says its implemented but I'm not seeing it.

Firmware Version:384.15_alpha1-gbbe574ca0d
Which is the most current I see in the OneDrive test builds

amtm, the SNBForum Asuswrt-Merlin Terminal Menu
Version 3.0, released on January 25 2020

New builds are not yet available on One drive because RMerlin pushed these changes on GitHub just 10 hours ago. So you'll have to either self compile the firmware from the source or wait for if and when he will push a new Alpha.
 
Is this implemented in the Alphas already? I'm on the most current one and I still see "remove" instead of "reset". I see that your announcement says its implemented but I'm not seeing it.

Firmware Version:384.15_alpha1-gbbe574ca0d
Which is the most current I see in the OneDrive test builds

amtm, the SNBForum Asuswrt-Merlin Terminal Menu
Version 3.0, released on January 25 2020
I might have a preview version then. I did not check if the public alphas have it in there.
Great news but one question. If we have a regular amtm version installed should we ( or the regular amtm itself automatically ) delete it after upgrading to 384.15? What's the point in having two separate amtm versions if they're identical in every way?
amtm FW handles that by itself, I'll be pushing an update for the regular version soon.
 
Oh :oops:, thanks for bringing that up. Due to a somewhat shoddy coding habit there is code running that should not when starting up amtm. It should only run when checking for updates.
I'm reviewing the affected code, it will be fixed with the next amtm version.
Thanks for reporting!

What versions of amtm and Diversion are you running? And is Skynet installed?
amtm 3.0
Diversion v4.1.8
Skynet v7.0.9

Thank you for fixing.
 
amtm 3.1.0 is now available

What's new
- Everything is new!
- Updated disk-check version to 2.7, keeps the log file size below 300 KB instead of 500 KB.
- Changes invoked by @nlurker 's experiences, thanks again for reporting.

This is a milestone for amtm, read this post above.
A Diversion update will be pushed soon that takes advantage of these new amtm versions.

How to update amtm
Use u to update to this latest version.

The headers for the regular amtm and amtm firmware version:

5mLIcxE.png
 
What's the point in having two separate amtm versions if they're identical in every way?
They are not, they just behave the same. While amtm is included in subsequent Asuswrt-Merlin releases, the forks might not choose to include it.
Also, I don't want to exclude routers with older firmware versions or those that run on John's LTS fork.
 
They are not, they just behave the same. While amtm is included in subsequent Asuswrt-Merlin releases, the forks might not choose to include it.
Also, I don't want to exclude routers with older firmware versions or those that run on John's LTS fork.

I get that point that's why I specifically asked AFTER we UPGRADE to 384.15........

And by your previous reply, I deduced the FW amtm version will automatically handle the removal part (if that's how it will deal with it) of the regular amtm already installed on it.
 
  • Like
Reactions: a5m
amtm 3.1.0 is now available

What's new
- Everything is new!
- Updated disk-check version to 2.7, keeps the log file size below 300 KB instead of 500 KB.
- Changes invoked by @nlurker 's experiences, thanks again for reporting.

This is a milestone for amtm, read this post above.
A Diversion update will be pushed soon that takes advantage of these new amtm versions.

How to update amtm
Use u to update to this latest version.

The headers for the regular amtm and amtm firmware version:

5mLIcxE.png
Strange error when updating, see end of below:
Code:
 Enter option  u
 amtm 3.0                  by thelonelycoder
 RT-AC86U (aarch64) FW-384.14 @ 10.14.16.1
 The SNBForum Asuswrt-Merlin Terminal Menu  

 1  open     Diversion     v4.1.8      no upd
 3  open     FreshJR QOS   v8.8    -> min upd

 4  open     YazFi         v3.2.3      no upd
 5  open     scribe        v2.4.1      no upd

 j1 open     connmon       v2.2.0      no upd
 j2 open     ntpMerlin     v2.2.0      no upd
 j3 open     scMerlin      v1.0.3      no upd

 j4 open     spdMerlin     v3.2.0   <- v3.1.0
 j5 open     uiDivStats    v1.3.0      no upd
 j6 open     uiScribe      v1.2.0      no upd

 ep manage   Entware packages          no upd

 e  exit     amtm          v3.0     -> v3.1.0
_____________________________________________

 Script update(s) available!
_____________________________________________

 amtm 3.1.0 is now available!
 See https://diversion.ch for what's new.

 Do you want to update amtm now?
_____________________________________________

 Continue? [1=Yes e=Exit] 1

/jffs/scripts/amtm: line 2: : Permission denied
Running again gives:
Code:
admin@RT-AC86U:/tmp/home/root# amtm
 amtm 3.1.0                by thelonelycoder
 RT-AC86U (aarch64) FW-384.14 @ 10.14.16.1
    The Asuswrt-Merlin Terminal Menu        

 1  open     Diversion                 v4.1.8
 3  open     FreshJR QOS                 v8.8

 4  open     YazFi                     v3.2.3
 5  open     scribe                    v2.4.1

 j1 open     connmon                   v2.2.0
 j2 open     ntpMerlin                 v2.2.0
 j3 open     scMerlin                  v1.0.3

 j4 open     spdMerlin                 v3.2.0
 j5 open     uiDivStats                v1.3.0
 j6 open     uiScribe                  v1.2.0

 ep manage   Entware packages

 dc manage   Disk check script   dcl show log
 sw manage   Swap file /mnt/swap 1.5G

 i  show     all available scripts or tools
 u  check    for script updates

    amtm options
 e  exit      t  theme   r  remove   a  about
_____________________________________________

 - Module diversion.mod downloaded
 - Module FreshJR_QOS.mod downloaded
 - Module YazFi.mod downloaded
 - Module scribe.mod downloaded
 - Module connmon.mod downloaded
 - Module ntpmerlin.mod downloaded
 - Module scmerlin.mod downloaded
 - Module spdmerlin.mod downloaded
 - Module uiDivStats.mod downloaded
 - Module uiScribe.mod downloaded
 - Module entware.mod downloaded
 - Module disk-check.mod downloaded
 - Disk check script updated to v2.7
_____________________________________________

 Enter option
I assume all OK?
 

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