net:bonding small style change for readability
This commit is contained in:
parent
db1daa5857
commit
fd48bc09ff
@ -104,8 +104,9 @@ bonding_pre_start()
|
|||||||
fi
|
fi
|
||||||
for s in ${slaves}; do
|
for s in ${slaves}; do
|
||||||
[ "${s}" = "${primary}" ] && continue
|
[ "${s}" = "${primary}" ] && continue
|
||||||
grep -q ${s} $sys_bonding_path/slaves \
|
if ! grep -q ${s} $sys_bonding_path/slaves; then
|
||||||
|| echo "+${s}" >$sys_bonding_path/slaves
|
echo "+${s}" >$sys_bonding_path/slaves
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
else
|
else
|
||||||
/sbin/ifenslave "${IFACE}" ${slaves} >/dev/null
|
/sbin/ifenslave "${IFACE}" ${slaves} >/dev/null
|
||||||
|
Loading…
Reference in New Issue
Block a user