aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/network-functions
diff options
context:
space:
mode:
Diffstat (limited to 'sysconfig/network-scripts/network-functions')
-rw-r--r--sysconfig/network-scripts/network-functions6
1 files changed, 5 insertions, 1 deletions
diff --git a/sysconfig/network-scripts/network-functions b/sysconfig/network-scripts/network-functions
index 46db1cab..95256bed 100644
--- a/sysconfig/network-scripts/network-functions
+++ b/sysconfig/network-scripts/network-functions
@@ -277,7 +277,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 ()