diff options
-rw-r--r-- | net/bonding.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/net/bonding.sh b/net/bonding.sh index 15f41e20..ae50ca42 100644 --- a/net/bonding.sh +++ b/net/bonding.sh @@ -104,8 +104,9 @@ bonding_pre_start() fi for s in ${slaves}; do [ "${s}" = "${primary}" ] && continue - grep -q ${s} $sys_bonding_path/slaves \ - || echo "+${s}" >$sys_bonding_path/slaves + if ! grep -q ${s} $sys_bonding_path/slaves; then + echo "+${s}" >$sys_bonding_path/slaves + fi done else /sbin/ifenslave "${IFACE}" ${slaves} >/dev/null |