diff --git a/usr/local/sbin/nm-unmetered-connection.sh b/usr/local/sbin/nm-unmetered-connection.sh index aa68fd0..dd6cbc2 100644 --- a/usr/local/sbin/nm-unmetered-connection.sh +++ b/usr/local/sbin/nm-unmetered-connection.sh @@ -1,5 +1,8 @@ #!/bin/bash +systemctl is-active dbus.service >/dev/null 2>&1 || exit 0 +systemctl is-active NetworkManager.service >/dev/null 2>&1 || exit 0 + metered_status=$(dbus-send --system --print-reply=literal \ --system --dest=org.freedesktop.NetworkManager \ /org/freedesktop/NetworkManager \