#  See the documentation in the man page about bonding.  There are quite a
#  few things you need to know about bonding.  Bonding is definitely not
#  for the faint of heart, but it allows seamless continuation of
#  connectivity when you plug in a wired ethernet cable, giving you more
#  bandwidth for large transfers.
#
#  There are many requirements for this, including that you know what IP
#  address you will get before the interface can be brought up (and before
#  DHCP can be brought up).
#
#  This example uses a static IP address.  Note that bonding must know what
#  it is, and then it must be set in the "up".  DHCP is disabled.

case "$1" in
   start)
      WIFIROAMD_BONDING_WITH_DEVICE=auto
      WIFIROAMD_BONDING_IPADDRESS=10.1.1.1/24
      WIFIROAMD_DHCP=0
      ;;
   up)
      ip addr add bond0 10.1.1.1/24
      ifconfig bond0 up
      ip route add default via 10.1.1.254
      WIFIROAMD_PINGGW_DEFAULTGW=10.1.1.254
      ;;
esac
