diff options
Diffstat (limited to 'net-scripts/net.modules.d/helpers.d/dhclient-wrapper')
-rwxr-xr-x | net-scripts/net.modules.d/helpers.d/dhclient-wrapper | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/net-scripts/net.modules.d/helpers.d/dhclient-wrapper b/net-scripts/net.modules.d/helpers.d/dhclient-wrapper index d857b6c..08a9433 100755 --- a/net-scripts/net.modules.d/helpers.d/dhclient-wrapper +++ b/net-scripts/net.modules.d/helpers.d/dhclient-wrapper @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright (c) 2004-2005 Gentoo Foundation +# Copyright (c) 2004-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # Contributed by Roy Marples (uberlord@gentoo.org) @@ -7,6 +7,9 @@ # Instead of writing new functions for dhclient, we simply map their variables # over to udhcpc style ones and call those scripts! +[[ -e /etc/dhcp/dhclient-enter-hooks ]] \ + && ( . /etc/dhcp/dhclient-enter-hooks ) + case "${reason}" in BOUND|REBOOT|REBIND) action="bound" ;; RENEW) action="renew" ;; |