1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00

Add max_pin_retry option and add mbim-utils

This commit is contained in:
Ycarus (Yannick Chabanois) 2024-05-17 14:24:07 +02:00
parent 277397f4d7
commit 0fc010d6cb
4 changed files with 16 additions and 3 deletions

View file

@ -54,6 +54,7 @@ omr_intf_set() {
uci -q delete network.$1.modalias
uci -q delete network.$1.product
fi
uci -q delete network.$1.pin_retry
}
omr_set_settings() {

View file

@ -131,6 +131,13 @@ if [ "$(uci -q get openmptcprouter.settings.tracebox)" = "" ]; then
EOF
fi
if [ -z "$(uci -q get openmptcprouter.settings.max_pin_retry)" ]; then
uci -q batch <<-EOF >/dev/null
set openmptcprouter.settings.max_pin_retry='2'
commit openmptcprouter
EOF
fi
_set_omr_ip() {
server=$1
serverip="$(uci -q get openmptcprouter.${server}.ip)"