#!/bin/sh

if [ "${ACTION}" = "add" ]; then
  usbmode -s && sleep 5
  [ -n "$(cat /proc/net/wireless | grep wlan)" ] && wifi config && wifi
fi
