[openwrt/openwrt] base-files: add protocol qmi/mbim support for ucidef_set_interface()
LEDE Commits
lede-commits at lists.infradead.org
Tue Oct 18 06:55:37 PDT 2022
hauke pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/bf9dc176516bdf030486483e3b766b9f49f3db15
commit bf9dc176516bdf030486483e3b766b9f49f3db15
Author: Andrey Butirsky <butirsky at gmail.com>
AuthorDate: Wed Sep 7 16:54:00 2022 +0300
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 <butirsky at gmail.com>
Reviewed-by: Lech Perczak <lech.perczak at gmail.com>
---
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 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
}
More information about the lede-commits
mailing list