mirror of
https://github.com/rsmarples/dhcpcd.git
synced 2024-12-11 10:53:45 +08:00
Add a sample NetworkManager hook script.
This commit is contained in:
parent
dc7fc61240
commit
1a68b1d47f
7
dhcpcd-hooks/90-NetworkManager
Normal file
7
dhcpcd-hooks/90-NetworkManager
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user