aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/network-functions
diff options
context:
space:
mode:
authorLukas Nykryn <lnykryn@redhat.com>2014-09-19 09:00:29 +0200
committerLukas Nykryn <lnykryn@redhat.com>2014-09-19 09:00:29 +0200
commita3088321039bd10768b6b192328bee29789eca88 (patch)
tree0e0d5139d6e815da3ce2a9cfecd8003a78ae31bb /sysconfig/network-scripts/network-functions
parent2716dde5b8d262c572f93b78258531344c67f0c8 (diff)
downloadinitscripts-a3088321039bd10768b6b192328bee29789eca88.tar
initscripts-a3088321039bd10768b6b192328bee29789eca88.tar.gz
initscripts-a3088321039bd10768b6b192328bee29789eca88.tar.bz2
initscripts-a3088321039bd10768b6b192328bee29789eca88.tar.xz
initscripts-a3088321039bd10768b6b192328bee29789eca88.zip
network-functions: grep->fgrep in bonding masters matching
Diffstat (limited to 'sysconfig/network-scripts/network-functions')
-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 912a3945..3b8d79d4 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 -sqx "$1" /sys/class/net/bonding_masters; then
+ if ! fgrep -sqx "$1" /sys/class/net/bonding_masters; then
echo "+$1" > /sys/class/net/bonding_masters 2>/dev/null
fi
(