diff options
Diffstat (limited to 'net-scripts/net.modules.d/helpers.d/module-loader')
-rw-r--r-- | net-scripts/net.modules.d/helpers.d/module-loader | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/net-scripts/net.modules.d/helpers.d/module-loader b/net-scripts/net.modules.d/helpers.d/module-loader index 3fac7bf..fe6d1df 100644 --- a/net-scripts/net.modules.d/helpers.d/module-loader +++ b/net-scripts/net.modules.d/helpers.d/module-loader @@ -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) @@ -10,7 +10,9 @@ MODULES_DIR="${svclib}/net.modules.d" . "${MODULES_DIR}/system" . "${MODULES_DIR}/helpers.d/functions" -conf=$(add_suffix "/etc/conf.d/net") +conf="$(add_suffix /etc/conf.d/net)" +[[ -e ${conf} ]] && source "${conf}" +conf="$(add_suffix /etc/conf.d/net.${interface})" [[ -e ${conf} ]] && source "${conf}" # Create some dummy functions, so we can depend on a module |