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>
This commit is contained in:
parent
4aba995d43
commit
35b93c81ff
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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…
Reference in a new issue