diff options
author | Lukas Nykryn <lnykryn@redhat.com> | 2014-09-19 09:00:29 +0200 |
---|---|---|
committer | Lukas Nykryn <lnykryn@redhat.com> | 2014-09-19 09:01:02 +0200 |
commit | 5f04c25515f637a5b8ecd329e14af0e6fe345d42 (patch) | |
tree | ab7fc3edd1134340a07eace1af8cffc947436ded /sysconfig | |
parent | 8129ceafb97cff916cf9663f848596219f736973 (diff) | |
download | initscripts-5f04c25515f637a5b8ecd329e14af0e6fe345d42.tar initscripts-5f04c25515f637a5b8ecd329e14af0e6fe345d42.tar.gz initscripts-5f04c25515f637a5b8ecd329e14af0e6fe345d42.tar.bz2 initscripts-5f04c25515f637a5b8ecd329e14af0e6fe345d42.tar.xz initscripts-5f04c25515f637a5b8ecd329e14af0e6fe345d42.zip |
network-functions: grep->fgrep in bonding masters matching
Diffstat (limited to 'sysconfig')
-rw-r--r-- | sysconfig/network-scripts/network-functions | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sysconfig/network-scripts/network-functions b/sysconfig/network-scripts/network-functions index e53270d2..fa62dddd 100644 --- a/sysconfig/network-scripts/network-functions +++ b/sysconfig/network-scripts/network-functions @@ -461,7 +461,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 ( |