mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 07:28:39 +01:00
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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user