aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--net/bonding.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/net/bonding.sh b/net/bonding.sh
index 5ccd1f57..6a83a8c3 100644
--- a/net/bonding.sh
+++ b/net/bonding.sh
@@ -95,16 +95,22 @@ bonding_pre_start()
_up
# finally add in slaves
+ # things needed in the process, and if they are done by ifenslave, openrc, and/or the kernel.
+ # down new slave interface: ifenslave, openrc
+ # set mtu: ifenslave, kernel
+ # set slave MAC: ifenslave, kernel
eoutdent
if [ -d /sys/class/net ]; then
sys_bonding_path=/sys/class/net/"${IFACE}"/bonding
if [ -n "${primary}" ]; then
+ IFACE=$primary _down
echo "+${primary}" >$sys_bonding_path/slaves
echo "${primary}" >$sys_bonding_path/primary
fi
for s in ${slaves}; do
[ "${s}" = "${primary}" ] && continue
if ! grep -q ${s} $sys_bonding_path/slaves; then
+ IFACE=$s _down
echo "+${s}" >$sys_bonding_path/slaves
fi
done