What's new

amtm amtm 4.5 - the Asuswrt-Merlin Terminal Menu, April 21, 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!

On a different note, I noticed that amtm displays Access Point (AP) operation mode for my AiMesh and Media Bridge devices.
I dug a bit and found this thread, which seemed to suggest there's more than one nvram variable at play.
Then I checked the nvram values for my devices and I got:

Media Bridge (RT-AC68U, RT-N66U):
sw_mode=3
wlc_psta=1

AiMesh node (RT-AC86U):
sw_mode=3
wlc_psta=2

Main router (RT-AX88U):
sw_mode=1
wlc_psta=0

So i modified locally amtm code with the following snippet:
Code:
 OM='Operation Mode:'
                case "$(nvram get sw_mode)" in
                        1) echo " $OM Wireless router";;
                        2) echo " $OM Repeater";;
                        3) case "$(nvram get wlc_psta)" in
                                1) echo " $OM Media Bridge";;
                                2) echo " $OM AiMesh Node";;
                                *) echo " $OM Access Point (AP)";;
                                esac;;
                        4) echo " $OM Media Bridge";;
                        5) echo " $OM AiMesh Node";;
                        *) echo " $OM $(nvram get sw_mode), as-yet-unknown";;
                esac
and it seems to work, at least in my limited scenario. I have no idea if values 4 and 5 for sw_mode are still being used, so I just left them in there.
Hoping this post is useful, but obviously in the low-priority minor improvement suggestion category. :)
 
On a different note, I noticed that amtm displays Access Point (AP) operation mode for my AiMesh and Media Bridge devices.
I dug a bit and found this thread, which seemed to suggest there's more than one nvram variable at play.
Then I checked the nvram values for my devices and I got:

Media Bridge (RT-AC68U, RT-N66U):
sw_mode=3
wlc_psta=1

AiMesh node (RT-AC86U):
sw_mode=3
wlc_psta=2

Main router (RT-AX88U):
sw_mode=1
wlc_psta=0

So i modified locally amtm code with the following snippet:
Code:
 OM='Operation Mode:'
                case "$(nvram get sw_mode)" in
                        1) echo " $OM Wireless router";;
                        2) echo " $OM Repeater";;
                        3) case "$(nvram get wlc_psta)" in
                                1) echo " $OM Media Bridge";;
                                2) echo " $OM AiMesh Node";;
                                *) echo " $OM Access Point (AP)";;
                                esac;;
                        4) echo " $OM Media Bridge";;
                        5) echo " $OM AiMesh Node";;
                        *) echo " $OM $(nvram get sw_mode), as-yet-unknown";;
                esac
and it seems to work, at least in my limited scenario. I have no idea if values 4 and 5 for sw_mode are still being used, so I just left them in there.
Hoping this post is useful, but obviously in the low-priority minor improvement suggestion category. :)
Thanks, I‘ll check that on my routers and implement.
 

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