From 4d108ec9cd106c43aabf877a20a222c1bce8d982 Mon Sep 17 00:00:00 2001 From: Lukas Nykryn Date: Tue, 16 Sep 2014 16:01:53 +0200 Subject: network-functions: improve bonding_masters grep kudos to john.haxby@oracle.com Conflicts: sysconfig/network-scripts/network-functions --- sysconfig/network-scripts/network-functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sysconfig/network-scripts/network-functions') 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 ( -- cgit v1.2.1