From e8d01ff32a02ee6197a53d6faa3efd123c9b4d2f Mon Sep 17 00:00:00 2001 From: bergware Date: Tue, 20 Feb 2024 20:29:24 +0100 Subject: [PATCH] network: fixed bonding with latest kernel modifications --- etc/rc.d/rc.inet1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etc/rc.d/rc.inet1 b/etc/rc.d/rc.inet1 index 437239540..769991d5c 100755 --- a/etc/rc.d/rc.inet1 +++ b/etc/rc.d/rc.inet1 @@ -175,8 +175,8 @@ bond_up(){ for BONDIF in ${BONDNICS[$i]}; do if [[ -e $SYSTEM/$BONDIF ]]; then [[ -z $PRIMARY ]] && PRIMARY=$BONDIF - run ip link set $BONDIF down - run ip link set $BONDIF master ${BONDNAME[$i]} up type bond_slave + run ip link set $BONDIF up + run ip link set $BONDIF master ${BONDNAME[$i]} down type bond_slave else [[ $DEBUG_ETH_UP == yes ]] && log "interface $BONDIF not present, can't add to ${BONDNAME[$i]}" fi