aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig
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:05:17 +0200
commit4d108ec9cd106c43aabf877a20a222c1bce8d982 (patch)
tree36d9057597e6cf83b988240e7f94ea5cbae8c03f /sysconfig
parentaebe90bc18a5296273820e8e17b854946ab63885 (diff)
downloadinitscripts-4d108ec9cd106c43aabf877a20a222c1bce8d982.tar
initscripts-4d108ec9cd106c43aabf877a20a222c1bce8d982.tar.gz
initscripts-4d108ec9cd106c43aabf877a20a222c1bce8d982.tar.bz2
initscripts-4d108ec9cd106c43aabf877a20a222c1bce8d982.tar.xz
initscripts-4d108ec9cd106c43aabf877a20a222c1bce8d982.zip
network-functions: improve bonding_masters grep
kudos to john.haxby@oracle.com Conflicts: sysconfig/network-scripts/network-functions
Diffstat (limited to 'sysconfig')
-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 04fde504..fdf12519 100644
--- a/sysconfig/network-scripts/network-functions
+++ b/sysconfig/network-scripts/network-functions
@@ -458,7 +458,7 @@ phy_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 -sqx "$1" /sys/class/net/bonding_masters; then
echo "+$1" > /sys/class/net/bonding_masters 2>/dev/null
fi
(