mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +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:
@@ -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