Browse Source

modemmanager: fix bearer disconnection logic

The bearer status wasn't being loaded in key/value mode, and therefore
would always fail to load the IPv4 config method.

Signed-off-by: Aleksander Morgado <aleksander@aleksander.es>
lilik-openwrt-22.03
Aleksander Morgado 5 years ago
parent
commit
35b93c81ff
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      net/modemmanager/Makefile
  2. +1
    -1
      net/modemmanager/files/modemmanager.proto

+ 1
- 1
net/modemmanager/Makefile View File

@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=modemmanager
PKG_VERSION:=1.10.8
PKG_RELEASE:=3
PKG_RELEASE:=4
PKG_SOURCE:=ModemManager-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=https://www.freedesktop.org/software/ModemManager


+ 1
- 1
net/modemmanager/files/modemmanager.proto View File

@ -375,7 +375,7 @@ proto_modemmanager_teardown() {
}
# load bearer connection method
bearerstatus=$(mmcli --bearer "${bearerpath}")
bearerstatus=$(mmcli --bearer "${bearerpath}" --output-keyvalue)
bearermethod=$(modemmanager_get_field "${bearerstatus}" "bearer.ipv4-config.method")
[ -n "${bearermethod}" ] || {
echo "couldn't load bearer method"


Loading…
Cancel
Save