What's new

amtm amtm 4.4 - the Asuswrt-Merlin Terminal Menu, March 10, 2024

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

thelonelycoder

Part of the Furniture
Welcome, this is amtm 4.4, the Asuswrt-Merlin Terminal Menu

amtm is a front end that manages popular scripts for wireless routers running Asuswrt-Merlin firmware. Starting with Asuswrt-Merlin 384.15, amtm is included in the firmware.

What's new in amtm 4.4, released on March 10, 2024
- Adds support for scMerlin v2.5.0 j3 fork by @thelonelycoder. Existing installations will show an extra menu entry to use this fork, new installation use it by default. Thanks to @Martinski for the updates. See new scMerlin thread. Use the SSH UI to update scMerlin after running the shown command.
- Updated content of shared amtm whitelist.
- Corrects wrong EHLO (Extended Hello) string when mailing an attachment with curl. Thanks GitHub user tazio for reporting.
- Adds disk check dc notification to amtm UI if the word error is found during the last check. Additionally an email can be sent if that happens. Configure it in dc. Thanks to GitHub user SirFireNewt for the suggestion.
- Adds support for Entware-backports Repo by @maurer for armv7sf-k2.6 based routers like the RT-AC68U or RT-AC1900P. Existing installations can add the repo in ep, new installations use it by default.
- Corrects scraping the Dynamic LED control lc sunset/sunrise time from the weather.com website. They have changed their JavaScript code.

How to update amtm
In the amtm menu, enter u to update to this latest version.
The firmware built-in and the legacy amtm version receive updates at the same time.

The full version history can be found on diversion.ch

amtm start command
Code:
amtm
On firmware older than 384.15, you may have to enter the full path to amtm.
Note that the command below does not work for the firmware built in amtm.
Code:
/jffs/scripts/amtm

Install command for Asuswrt-Merlin firmware older than 384.15
Copy and paste the complete command below into your favorite SSH terminal, then press Enter.
Code:
curl -Os https://diversion.ch/amtm/amtm && sh amtm
Routers with Asuswrt-Merlin firmware 384.15 and newer require no installation, amtm is included in the firmware. The firmware built in amtm adds FW next to the version.

amtm is hosted on the Diversion website: https://diversion.ch/amtm.html

myd5cjv2qx4.png
 
Last edited:
Thanks for the update.

FYI I can break amtm as follows (this is not really the fault of amtm).

1. Install Disk check script (dc) and exit amtm.
2. Replace pre-mount script with my own (that contains an "e2fsck -p" command).
3. Launch amtm and it goes into a loop trying to display the error message "Unsupported pre-mount script found,\n please remove file manually".

Code:
+ disk_check_installed
+ atii=1
+ [ -f /jffs/scripts/disk-check ]
+ [ -f /jffs/addons/amtm/disk-check.mod ]
+ [ -f /jffs/scripts/pre-mount ]
+ grep -q ^. /jffs/addons/amtm/disk-check /jffs/scripts/pre-mount
+ disk_check install
+ [ -f /jffs/scripts/pre-mount ]
+ grep -q e2fsck -p /jffs/scripts/pre-mount
+ am=
+ show_amtm  Unsupported pre-mount script found,\n please remove file manually
+ s_d_u
+ amtmURL=https://fwupdate.asuswrt-merlin.net/amtm_fw
+ c_t
+ divconf=/opt/share/diversion/.conf/diversion.conf
+ [ -f /jffs/addons/amtm/.amtm_theme ]
+ . /jffs/addons/amtm/.amtm_theme
+ theme=standard
 
Thanks for the update.

FYI I can break amtm as follows (this is not really the fault of amtm).

1. Install Disk check script (dc) and exit amtm.
2. Replace pre-mount script with my own (that contains an "e2fsck -p" command).
3. Launch amtm and it goes into a loop trying to display the error message "Unsupported pre-mount script found,\n please remove file manually".

Code:
+ disk_check_installed
+ atii=1
+ [ -f /jffs/scripts/disk-check ]
+ [ -f /jffs/addons/amtm/disk-check.mod ]
+ [ -f /jffs/scripts/pre-mount ]
+ grep -q ^. /jffs/addons/amtm/disk-check /jffs/scripts/pre-mount
+ disk_check install
+ [ -f /jffs/scripts/pre-mount ]
+ grep -q e2fsck -p /jffs/scripts/pre-mount
+ am=
+ show_amtm  Unsupported pre-mount script found,\n please remove file manually
+ s_d_u
+ amtmURL=https://fwupdate.asuswrt-merlin.net/amtm_fw
+ c_t
+ divconf=/opt/share/diversion/.conf/diversion.conf
+ [ -f /jffs/addons/amtm/.amtm_theme ]
+ . /jffs/addons/amtm/.amtm_theme
+ theme=standard
You hacker! :cool: Of course amtm correctly reports the error when such a script is pre-existing.
In your case amtm finds that dc is installed but that the correct entry is missing in /jffs/scripts/pre-mount. It therefore triggers the install function which return to amtm with the message Unsupported pre-mount script found, please remove file manually which again triggers the check for the correct entry in /jffs/scripts/pre-mount. amtm blinkenlights ensues. Another game available in amtm, for instructions read above :)
 
- Let the games begin! g now offers a list of 10 games to play on the router. Note that the crawl game currently only works on older Mipsel routers. The Entware team works on a fix.
Any other questions why ASUS routers are the best? :D If you add Larn/Ularn i will be in 7th heaven.
 
blinkenlights

Now that you used that word, I got something for you to have fun in the terminal.

Code:
telnet towel.blinkenlights.nl

PS: I guess their servers are having some problems but the last time I checked -a month ago- it was working properly.

For the ones who can't wait for their telnet server to be fixed, here's a website that shows what that is all about: https://asciinema.org/a/8
 
Now that you used that word, I got something for you to have fun in the terminal.

Code:
telnet towel.blinkenlights.nl

PS: I guess their servers are having some problems but the last time I checked -a month ago- it was working properly.

For the ones who can't wait for their telnet server to be fixed, here's a website that shows what that is all about: https://asciinema.org/a/8
LOL! That's amazing!!! :)
 
Who needs a million Cuda's when you have this!
NVIDIA - you're on notice
;-)
 
Minor fix is out for amtm, no version change.
This corrects a missing instruction case that prevented displaying the ps option to re-issue the pixelserv-tls WebUI certificate when it was previously installed.
Use u to update.
 
amtm 3.4 is now available

What's new
- Adds support for rt RTRMON by @Viktor Jaep. See https://www.snbforums.com/threads/r...kla-speedtest-geek-out-with-temps-in-k.79738/
- Simplification of addons detection (x3mRouting, FreshJR_QOS)
- Removed support for original Stubby install sd by @Xentrk, this has long since been replaced by native support in firmware.
- nsrum NVRAM Save/Restore Utility new install restricted to firmware 384.19 and older for compatibility reasons.
- Updated lc LED control to version 2.1, fixed missing cron job update after dynamic time update runs (sunset/sunrise)
- Fixed amtm blinkenlights behaviour when unsupported dc Disk check script suddenly appears. See https://www.snbforums.com/threads/amtm-3-3-x-the-asuswrt-merlin-terminal-menu.79665/post-774388
- Prevents install of dnscrypt installer or AdGuardHome if one of them is already installed, they are not compatible.
- Minor fixes to amtm mail script

Thanks to both @ColinTaylor and @SomeWhereOverTheRainBow for pointers.

How to update amtm
Use u to update to this latest version.
 
amtm 3.5 and Diversion 4.3.3 are now available

What's new

- Adds support for wi WICENS - WAN IP Change Email Notification Script by @Maverickcdn . Welcome to amtm Mr. Maverick! See https://www.snbforums.com/threads/wicens-wan-ip-change-email-notification-script.69294/
- Adds support for km KILLMON - IP4/IP6 VPN Kill Switch Monitor & Configurator by @Viktor Jaep , See https://www.snbforums.com/threads/k...6-vpn-kill-switch-monitor-configurator.81758/
- Adds support for wf Dual WAN Failover by @Ranger802004 . Welcome to amtm Mr. Ranger! See https://www.snbforums.com/threads/dual-wan-failover-v2-0-2-release.83674/
- amtm can now keep a history of entered shell commands with sh. This is the same feature that Diversion always provided by default but has now been moved to amtm. The move from Diversion to amtm is seamless if Diversion is updated before amtm, no user interaction is necessary.
- The Entware update function in ep will now display the list of up-gradable packages and ask if the update(s) should run. Entware services are automatically stopped before and restarted after the update.

How to update amtm
Use u to update to this latest version.
 
Last edited:
Just did the update - kudos for the sh history feature!
Works great and is a real time saver when debugging/exploring.

And hats off to the new addon developers now in amtm (@Maverickcdn and @Ranger802004 )
Thanks guys!
 
- amtm can now keep a history of entered shell commands with sh. This is the same feature that Diversion always provided by default but has now been moved to amtm. The move from Diversion to amtm is seamless if Diversion is updated before amtm, no user interaction is necessary.
That's great, but what if amtm was updated first?

Also a suggestion: I launched amtm, entered u to check for updates, then after seeing there was a new Diversion version I checked the changelog, yay, back to terminal, pressed 1 to open Diversion..... BAM, amtm got updated, didn't realise there was a prompt there already automatically, to update amtm [1: update, e: exit]....... Maybe that 1 is not the best option if there's an automatic prompt, y or something that's not already in the menu above would be a better choice.
 
That's great, but what if amtm was updated first?

Also a suggestion: I launched amtm, entered u to check for updates, then after seeing there was a new Diversion version I checked the changelog, yay, back to terminal, pressed 1 to open Diversion..... BAM, amtm got updated, didn't realise there was a prompt there already automatically, to update amtm [1: update, e: exit]....... Maybe that 1 is not the best option if there's an automatic prompt, y or something that's not already in the menu above would be a better choice.
See what happens if you update amtm first - as you did - and then update Diversion.
Then open amtm again.
Magic huh?
 
Anyone else have the issue where shtris (g1) keeps getting uninstalled?

I need to keep reinstalling it after every reboot
 
Anyone else have the issue where shtris (g1) keeps getting uninstalled?

I need to keep reinstalling it after every reboot
See this thread, that game is intentionally installed to the /tmp folder which is recreated at boot time.
Since you have to reinstall each time didn't you notice what it says when installing:
Code:
 This installs shtris - Tetris optimized for Asuswrt-Merlin
 on your router.

 Author: DDD
 https://www.snbforums.com/threads/i-may-be-the-first-person-to-play-games-on-asus-router.79319/

 Note that this game will be deleted after
 restarting the router.
I can change the script to install to a non-volatile folder if that's what you want.
 
See this thread, that game is intentionally installed to the /tmp folder which is recreated at boot time.
Since you have to reinstall each time didn't you notice what it says when installing:
Code:
 This installs shtris - Tetris optimized for Asuswrt-Merlin
 on your router.

 Author: DDD
 https://www.snbforums.com/threads/i-may-be-the-first-person-to-play-games-on-asus-router.79319/

 Note that this game will be deleted after
 restarting the router.
I can change the script to install to a non-volatile folder if that's what you want.
Oh thank you so much for figuring that out!
I think installing to a non-volatile folder folder would be a lot better. That way I don't need to reinstall every time I want to play :D
 
Oh thank you so much for figuring that out!
I think installing to a non-volatile folder folder would be a lot better. That way I don't need to reinstall every time I want to play :D
This would require that Entware is installed, is that the case with you?
 

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