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:
Aleksander Morgado
2019-11-05 15:14:17 +01:00
parent 4aba995d43
commit 35b93c81ff
2 changed files with 2 additions and 2 deletions
+1 -1
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"