diff options
author | Andrey Butirsky <butirsky@gmail.com> | 2022-09-07 16:54:00 +0300 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2022-10-18 15:09:23 +0200 |
commit | bf9dc176516bdf030486483e3b766b9f49f3db15 (patch) | |
tree | b519af3c99423e6b5ed20c997a9a484ed97794ea | |
parent | 63460a5ba2fdf227f02023f9674330e28f6c82fe (diff) | |
download | upstream-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-x | package/base-files/files/bin/config_generate | 8 |
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 } |