#  An encrypted AP with the ESSID "crypted-static".  The value set for
#  WIFIROAMD_IWCONFIG_KEY results in running the command
#  "iwconfig ethX key $WIFIROAMD_IWCONFIG_KEY".  So, substitute whatever
#  argument you would use when configuring it manually with iwconfig.
#
#  DHCP is disabled and manual commands for configuring the network are
#  given.

case "$1" in
   start)
      WIFIROAMD_IWCONFIG_KEY=1234567890
      WIFIROAMD_DHCP=0
      ;;
   up)
      ip addr add "$WIFIROAMD_DEVICE" 10.1.1.1/24
      ifconfig "$WIFIROAMD_DEVICE" up
      ip route add default via 10.1.1.254

      #  specify the gateway for pinging in the monitor
      WIFIROAMD_PINGGW_DEFAULTGW=10.1.1.254
      ;;
esac
