#! /bin/bash . /usr/lib/network/network IFENSLAVE="/sbin/ifenslave" bond_up() { local bond_interface load_profile "$1" bring_interface up "$INTERFACE" "$CONN_DIR/ethernet" up "$1" for bond_client in $BOND_INTERFACES; do bring_interface up "$INTERFACE" $IFENSLAVE $INTERFACE $bond_client done return 0 } bond_down() { local bond_interface load_profile "$1" for bond_client in $BOND_INTERFACES; do $IFENSLAVE $INTERFACE -d $bond_client done "$CONN_DIR/ethernet" down "$1" bring_interface down "$INTERFACE" return 0 } # Returns status of profile - is it still functional? bond_status() { true } bond_$1 "$2" exit $? # vim: set ts=4 et sw=4: