network: fixed bonding with latest kernel modifications

This commit is contained in:
bergware
2024-02-20 20:29:24 +01:00
parent 21f1ec278e
commit e8d01ff32a

View File

@@ -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