mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-31 00:24:12 +00:00
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>
This commit is contained in:
parent
63460a5ba2
commit
bf9dc17651
@ -207,6 +207,14 @@ generate_network() {
|
|||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
qmi|\
|
||||||
|
mbim)
|
||||||
|
uci -q batch <<-EOF
|
||||||
|
set network.$1.proto='${protocol}'
|
||||||
|
set network.$1.pdptype='ipv4'
|
||||||
|
EOF
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user