comgt: ncm: try to detect interface for ttyACM ports
authorLech Perczak <lech.perczak@gmail.com>
Thu, 31 Mar 2022 19:16:34 +0000 (21:16 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 17 Apr 2022 19:31:02 +0000 (21:31 +0200)
commit83003b6c066049fc68be802dfb25449753cb4671
tree499228524411a6cb12b93a3f455ccad92514cae7
parent839cb17e3a246deb492658a629980fb2c77e62bc
comgt: ncm: try to detect interface for ttyACM ports

Some modems expose ttyACM as their control ports, which have the
"device" symlink pointing one level down in sysfs tree. Try to find
network interfaces for them as well, this is commonly used for modems
exposing ACM + RNDIS or ACM + ECM interface combinations.

Co-developed-by: Cezary Jackiewicz <cezary@eko.one.pl>
Signed-off-by: Cezary Jackiewicz <cezary@eko.one.pl>
Signed-off-by: Lech Perczak <lech.perczak@gmail.com>
(cherry picked from commit ed7957810c0aee04943559be9b0ed23431ee0654)
package/network/utils/comgt/files/ncm.sh