#!/sbin/svc
#
# Wireless network interface config script (wpa_cli)
#

INTRF=xxx



# get configuration file
DEVFILE="/etc/network/${INTRF}/dev"
if [ ! -r "${DEVFILE}" ]
then
    rc_error "Cannot find configuration file for interface ${INTRF}"
    exit 1
fi
. "${DEVFILE}"

MYLISTING="${desc}"
CONTROL_GROUP="netconf"
MYVERSION="1.0"


depend() {
    depends_on "net_${INTRF}.link"
}


start() {
    daemonize_orig /usr/sbin/wpa_cli -i "${INTRF}" -a /lib/platinum/wpa_action
    /usr/sbin/wpa_cli -i "${INTRF}" reassociate
}



stop() {
    kill_pid
}



# vim:ts=4:sw=4:expandtab:syntax=sh
