]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Add a sample NetworkManager hook script.
authorRoy Marples <roy@marples.name>
Wed, 4 Jun 2008 16:36:12 +0000 (16:36 +0000)
committerRoy Marples <roy@marples.name>
Wed, 4 Jun 2008 16:36:12 +0000 (16:36 +0000)
dhcpcd-hooks/90-NetworkManager [new file with mode: 0644]

diff --git a/dhcpcd-hooks/90-NetworkManager b/dhcpcd-hooks/90-NetworkManager
new file mode 100644 (file)
index 0000000..f05ccd7
--- /dev/null
@@ -0,0 +1,7 @@
+# Hook for NetworkManager, relies on D-Bus
+
+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`"
+fi