The bug is in /usr/lib/lua/./ubus/ui.lua . It uses the routername to determine whether it's running on a RUTX12 or not:
local function check_modem(uci, modemId, modems)
for _, modem in ipairs(modems) do
if modemId == modem.id then
if modem.builtin == 1 then
if uci:get("system", "system", "routername") == "RUTX12" then
return (modem.primary == 1) and modemTitles.primary or modemTitles.secondary
else
return modemTitles.internal
end
end
end
end
return modemTitles.external
end
In our modems: uci get system.system.routername yields OscarWildeWAN which is a name we use to distinguish between modems when being logged in over ssh.
You could instead use something similar to /usr/lib/lua/vuci/container.lua: ubus call gcont get '{"array":"modems"}' or uci get system.system.device_code which is 'RUTX1200XXXX' on all RUTX12's I have here.
My pleasure.