aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/network-functions
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2009-10-20 16:56:32 -0400
committerBill Nottingham <notting@redhat.com>2009-10-20 16:56:32 -0400
commitdfdb699ff30d0a5dc799d79de70150823a6942ea (patch)
tree088a2b1cd5ef141aa9cd4fc4b930f14d76556bf8 /sysconfig/network-scripts/network-functions
parent0ee4a590e09c76e01e0d799206022dad1585c22b (diff)
downloadinitscripts-dfdb699ff30d0a5dc799d79de70150823a6942ea.tar
initscripts-dfdb699ff30d0a5dc799d79de70150823a6942ea.tar.gz
initscripts-dfdb699ff30d0a5dc799d79de70150823a6942ea.tar.bz2
initscripts-dfdb699ff30d0a5dc799d79de70150823a6942ea.tar.xz
initscripts-dfdb699ff30d0a5dc799d79de70150823a6942ea.zip
Load bonding driver if BONDING_OPTS is defined. (#516569)
Diffstat (limited to 'sysconfig/network-scripts/network-functions')
-rw-r--r--sysconfig/network-scripts/network-functions2
1 files changed, 2 insertions, 0 deletions
diff --git a/sysconfig/network-scripts/network-functions b/sysconfig/network-scripts/network-functions
index 1583a3ae..43c86064 100644
--- a/sysconfig/network-scripts/network-functions
+++ b/sysconfig/network-scripts/network-functions
@@ -180,6 +180,8 @@ is_available ()
LC_ALL= LANG= ip -o link | grep -q $1
[ "$?" = "1" ] || return 0
+ [ -n "$BONDING_OPTS" ] && install_bonding_driver $1
+
alias=$(modprobe -c | awk \
'BEGIN { alias = ""; }
$1 == "alias" && $2 == "'"$1"'" { alias = $3; }