diff options
-rw-r--r-- | sysconfig/network-scripts/network-functions | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sysconfig/network-scripts/network-functions b/sysconfig/network-scripts/network-functions index 9cca9824..c1da9888 100644 --- a/sysconfig/network-scripts/network-functions +++ b/sysconfig/network-scripts/network-functions @@ -275,7 +275,11 @@ do_netreport () is_nm_running () { - [ "$(LANG=C nmcli -t --fields running general status 2>/dev/null)" = "running" ] + dbus-send --system --print-reply \ + --dest=org.freedesktop.DBus \ + /org/freedesktop/DBus \ + org.freedesktop.DBus.GetNameOwner \ + string:"org.freedesktop.NetworkManager" >/dev/null 2>&1 } is_nm_active () |