aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuke Bigum <biguml@lmax.com>2014-03-31 10:49:17 +0200
committerLukas Nykryn <lnykryn@redhat.com>2014-03-31 10:55:31 +0200
commite956710ffda24a569460688f99a1d410328bbc61 (patch)
tree954e1385ad4c1556f1da92d3636294e46c42be0e
parent3235be4a3da91bc91c698b318935240dbdf81aac (diff)
downloadinitscripts-e956710ffda24a569460688f99a1d410328bbc61.tar
initscripts-e956710ffda24a569460688f99a1d410328bbc61.tar.gz
initscripts-e956710ffda24a569460688f99a1d410328bbc61.tar.bz2
initscripts-e956710ffda24a569460688f99a1d410328bbc61.tar.xz
initscripts-e956710ffda24a569460688f99a1d410328bbc61.zip
bonding: match whole name of interface
-rw-r--r--sysconfig/network-scripts/network-functions2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysconfig/network-scripts/network-functions b/sysconfig/network-scripts/network-functions
index 09361d43..fe99e0d5 100644
--- a/sysconfig/network-scripts/network-functions
+++ b/sysconfig/network-scripts/network-functions
@@ -435,7 +435,7 @@ is_wireless_device ()
install_bonding_driver ()
{
[ ! -f /sys/class/net/bonding_masters ] && ( modprobe bonding || return 1 )
- if ! grep -sq "$1" /sys/class/net/bonding_masters; then
+ if ! grep -sqw "$1" /sys/class/net/bonding_masters; then
echo "+$1" > /sys/class/net/bonding_masters 2>/dev/null
fi
(