From: Andrey Butirsky Date: Wed, 7 Sep 2022 13:54:00 +0000 (+0300) Subject: base-files: add protocol qmi/mbim support for ucidef_set_interface() X-Git-Tag: v23.05.0-rc1~2095 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=bf9dc176516bdf030486483e3b766b9f49f3db15;p=openwrt%2Fstaging%2Fhauke.git 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 --- diff --git a/package/base-files/files/bin/config_generate b/package/base-files/files/bin/config_generate index 38362813d1..0001f88746 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 }