aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Butirsky <butirsky@gmail.com>2022-09-07 16:54:00 +0300
committerHauke Mehrtens <hauke@hauke-m.de>2022-10-18 15:09:23 +0200
commitbf9dc176516bdf030486483e3b766b9f49f3db15 (patch)
treeb519af3c99423e6b5ed20c997a9a484ed97794ea
parent63460a5ba2fdf227f02023f9674330e28f6c82fe (diff)
downloadupstream-bf9dc176516bdf030486483e3b766b9f49f3db15.tar.gz
upstream-bf9dc176516bdf030486483e3b766b9f49f3db15.tar.bz2
upstream-bf9dc176516bdf030486483e3b766b9f49f3db15.zip
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@gmail.com> Reviewed-by: Lech Perczak <lech.perczak@gmail.com>
-rwxr-xr-xpackage/base-files/files/bin/config_generate8
1 files changed, 8 insertions, 0 deletions
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
}