aboutsummaryrefslogtreecommitdiffstats
path: root/dhcpcd-hooks/90-NetworkManager
diff options
context:
space:
mode:
Diffstat (limited to 'dhcpcd-hooks/90-NetworkManager')
-rw-r--r--dhcpcd-hooks/90-NetworkManager11
1 files changed, 6 insertions, 5 deletions
diff --git a/dhcpcd-hooks/90-NetworkManager b/dhcpcd-hooks/90-NetworkManager
index f05ccd7..c4d69fe 100644
--- a/dhcpcd-hooks/90-NetworkManager
+++ b/dhcpcd-hooks/90-NetworkManager
@@ -1,7 +1,8 @@
-# Hook for NetworkManager, relies on D-Bus
+# Hook for NetworkManager-0.7.0
+# NOTE: NetworkManager will override the script dhcpcd calls, so this hook
+# only makes sense if NetworkManager is patched NOT to override the
+# script dhcpcd would call.
-if type dbus-send >/dev/null 2>&1; then
- dbus-send --system --dest=com.redhat.dhcp \
- --type=method_call /com/redhat/dhcp/"${interface}" \
- com.redhat.dhcp.set 'string:'"`env`"
+if [ -x /usr/libexec/nm-dhcp-client.action ]; then
+ /usr/libexec/nm-dhcp-client.action
fi