diff options
Diffstat (limited to 'net-scripts/net.modules.d/helpers.d/udhcpc-wrapper')
-rwxr-xr-x | net-scripts/net.modules.d/helpers.d/udhcpc-wrapper | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/net-scripts/net.modules.d/helpers.d/udhcpc-wrapper b/net-scripts/net.modules.d/helpers.d/udhcpc-wrapper deleted file mode 100755 index e63f7ee..0000000 --- a/net-scripts/net.modules.d/helpers.d/udhcpc-wrapper +++ /dev/null @@ -1,28 +0,0 @@ -#!/bin/bash -# Copyright (c) 2004-2006 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# Contributed by Roy Marples (uberlord@gentoo.org) - -# Map the dns, ntp and nis info so our system module can apply the setup - -export dns_domain_${interface}="${domain}" -export dns_servers_${interface}="${dns}" -export routers="${router}" - -export ntp_servers_${interface}="${ntpsrv}" - -export nis_domain_${interface}="${nisdomain}" -export nis_servers_${interface}="${nissrv}" - -[[ ${RC_GOT_FUNCTIONS} != "yes" ]] && source /sbin/functions.sh -RC_QUIET_STDOUT="yes" - -"${svclib}/net.modules.d/helpers.d/dhcp" "$@" - -if [[ $? == 0 ]] && [[ $1 == "bound" || $1 == "renew" ]] ; then - # Store the address in a cache for future usage - echo "${ip// /}" > "/var/cache/udhcpc-${interface}.lease" - chmod 600 "/var/cache/udhcpc-${interface}.lease" -fi - -# vim: ts=4 : |