aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Nykryn <lnykryn@redhat.com>2014-09-16 16:01:53 +0200
committerLukas Nykryn <lnykryn@redhat.com>2014-09-16 16:01:53 +0200
commit2cf0171f48703e29703b12a3ec214365a1b725fe (patch)
tree0c63e5ceb76540422fde5db8cde1c11aaf6c1716
parentcbf01851cc61747b6178ad3ce4868224a14501d9 (diff)
downloadinitscripts-2cf0171f48703e29703b12a3ec214365a1b725fe.tar
initscripts-2cf0171f48703e29703b12a3ec214365a1b725fe.tar.gz
initscripts-2cf0171f48703e29703b12a3ec214365a1b725fe.tar.bz2
initscripts-2cf0171f48703e29703b12a3ec214365a1b725fe.tar.xz
initscripts-2cf0171f48703e29703b12a3ec214365a1b725fe.zip
network-functions: improve bonding_masters grep
kudos to john.haxby@oracle.com
-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 6e33bad8..912a3945 100644
--- a/sysconfig/network-scripts/network-functions
+++ b/sysconfig/network-scripts/network-functions
@@ -441,7 +441,7 @@ phy_wireless_device ()
install_bonding_driver ()
{
[ ! -f /sys/class/net/bonding_masters ] && ( modprobe bonding || return 1 )
- if ! grep -sqw "$1" /sys/class/net/bonding_masters; then
+ if ! grep -sqx "$1" /sys/class/net/bonding_masters; then
echo "+$1" > /sys/class/net/bonding_masters 2>/dev/null
fi
(