summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-scripts/net.modules.d/helpers.d/dhcpcd-wrapper')
-rwxr-xr-xnet-scripts/net.modules.d/helpers.d/dhcpcd-wrapper14
1 files changed, 7 insertions, 7 deletions
diff --git a/net-scripts/net.modules.d/helpers.d/dhcpcd-wrapper b/net-scripts/net.modules.d/helpers.d/dhcpcd-wrapper
index ce86a3d..ca4778b 100755
--- a/net-scripts/net.modules.d/helpers.d/dhcpcd-wrapper
+++ b/net-scripts/net.modules.d/helpers.d/dhcpcd-wrapper
@@ -1,7 +1,6 @@
#!/bin/bash
# Copyright (c) 2005-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-
# Contributed by Roy Marples (uberlord@gentoo.org)
interface="${1##*/dhcpcd-}"
@@ -13,16 +12,17 @@ else
action="up"
fi
-. /sbin/functions.sh
-. "${svclib}/net.modules.d/helpers.d/module-loader"
+[[ ${RC_GOT_FUNCTIONS} != "yes" ]] && source /sbin/functions.sh
+RC_QUIET_STDOUT="yes"
+source "${svclib}/net.modules.d/helpers.d/module-loader"
# Map MAC address variables to interface variables
-macnet_pre_start "${interface}" 1>/dev/null
+macnet_pre_start "${interface}"
# Map wireless ESSID variables to interface variables
if [[ -n ${wireless_module} ]] ; then
if wireless_exists "${interface}" ; then
- essidnet_pre_start "${interface}" 1>/dev/null
+ essidnet_pre_start "${interface}"
fi
fi
@@ -58,6 +58,6 @@ else
fi
[[ -x ${exe} ]] && ( ${exe} "$@" 1>/dev/null )
-. "${svclib}/net.modules.d/helpers.d/dhcp-state"
+source "${svclib}/net.modules.d/helpers.d/dhcp-state"
-# vim:ts=4
+# vim: ts=4 :