redmine

Suppressed few errors

Showing 1 changed file with 5 additions and 2 deletions
@@ -486,8 +486,11 @@ case "$CMD" in @@ -486,8 +486,11 @@ case "$CMD" in
486 486
487 # Creating bond-ifaces 487 # Creating bond-ifaces
488 if [[ "$D1Q_EXISTS" == 0 ]]; then #make all 488 if [[ "$D1Q_EXISTS" == 0 ]]; then #make all
489 - echo "+$D1Q_IFACE" > /sys/class/net/bonding_masters 489 + echo "+$D1Q_IFACE" > /sys/class/net/bonding_masters 2>/dev/null
490 - echo "$MODE" > /sys/class/net/"$D1Q_IFACE"/bonding/mode 490 +
  491 + if [[ -d /sys/class/net/"$D1Q_IFACE"/bonding ]]; then
  492 + echo "$MODE" > /sys/class/net/"$D1Q_IFACE"/bonding/mode
  493 + fi
491 494
492 for SLAVE in "${!SLAVES_VARIABLE}"; do 495 for SLAVE in "${!SLAVES_VARIABLE}"; do
493 ip link set dev "$SLAVE" down #enslaved int should be shutted down 496 ip link set dev "$SLAVE" down #enslaved int should be shutted down