From bf9dc176516bdf030486483e3b766b9f49f3db15 Mon Sep 17 00:00:00 2001 From: Andrey Butirsky Date: Wed, 7 Sep 2022 16:54:00 +0300 Subject: [PATCH] base-files: add protocol qmi/mbim support for ucidef_set_interface() Make it possible to setup default WAN interface for devices with built-in LTE modems, using QMI or MBIM. Signed-off-by: Andrey Butirsky Reviewed-by: Lech Perczak --- package/base-files/files/bin/config_generate | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/package/base-files/files/bin/config_generate b/package/base-files/files/bin/config_generate index 38362813d19..0001f887466 100755 --- a/package/base-files/files/bin/config_generate +++ b/package/base-files/files/bin/config_generate @@ -207,6 +207,14 @@ generate_network() { EOF } ;; + + qmi|\ + mbim) + uci -q batch <<-EOF + set network.$1.proto='${protocol}' + set network.$1.pdptype='ipv4' + EOF + ;; esac } -- 2.30.2