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
1 changed files with 8 additions and 0 deletions
|
@ -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…
Reference in a new issue