From e37aa4a58be7e48be5c0196ffb46bb461629f1ec Mon Sep 17 00:00:00 2001 From: Tom Herbers Date: Fri, 4 Aug 2023 23:19:37 +0200 Subject: [PATCH] ipq40xx: add Teltonika RUTX50 devpath is only a guess --- package/gluon-core/luasrc/lib/gluon/upgrade/250-cellular | 1 + package/gluon-core/luasrc/usr/lib/lua/gluon/platform.lua | 1 + targets/ipq40xx-generic | 7 +++++++ 3 files changed, 9 insertions(+) diff --git a/package/gluon-core/luasrc/lib/gluon/upgrade/250-cellular b/package/gluon-core/luasrc/lib/gluon/upgrade/250-cellular index 0099d1d8854..34807e521b5 100755 --- a/package/gluon-core/luasrc/lib/gluon/upgrade/250-cellular +++ b/package/gluon-core/luasrc/lib/gluon/upgrade/250-cellular @@ -53,6 +53,7 @@ elseif platform.match('ath79', 'nand', { setup_ncm_qmi('/dev/ttyACM0', 'ncm', 15) elseif platform.match('ipq40xx', 'generic', { 'glinet,gl-ap1300', + 'teltonika,rutx50', }) then setup_ncm_qmi('/dev/cdc-wdm0', 'qmi', 15) elseif platform.match('ramips', 'mt7621', { diff --git a/package/gluon-core/luasrc/usr/lib/lua/gluon/platform.lua b/package/gluon-core/luasrc/usr/lib/lua/gluon/platform.lua index ba4b5b48925..2a498007253 100644 --- a/package/gluon-core/luasrc/usr/lib/lua/gluon/platform.lua +++ b/package/gluon-core/luasrc/usr/lib/lua/gluon/platform.lua @@ -80,6 +80,7 @@ function M.is_cellular_device() return true elseif M.match('ipq40xx', 'generic', { 'glinet,gl-ap1300', + 'teltonika,rutx50', }) then return true elseif M.match('ramips', 'mt7621', { diff --git a/targets/ipq40xx-generic b/targets/ipq40xx-generic index b6a49ca7fcc..cd254d78563 100644 --- a/targets/ipq40xx-generic +++ b/targets/ipq40xx-generic @@ -120,6 +120,13 @@ device('plasma-cloud-pa2200', 'plasmacloud_pa2200', { }) +-- Teltonika + +device('teltonika-rutx50', 'teltonika_rutx50', { + factory = false, +}) + + -- ZyXEL device('zyxel-nbg6617', 'zyxel_nbg6617')