#!/bin/sh

# chkconfig: - 98 02  
# description: bgwifi agent  daemon   
# processname: bgwifiagent_inet
                               
BG_INET_WIFI_AGENT=/usr/local/BGInetWiFiAgent

case "$1" in
        start)
                $BG_INET_WIFI_AGENT/wifi_agent_start.sh
        ;;

        stop)
                $BG_INET_WIFI_AGENT/wifi_agent_stop.sh
        ;;

        restart)
                $BG_INET_WIFI_AGENT/wifi_agent_stop.sh
                $BG_INET_WIFI_AGENT/wifi_agent_start.sh
        ;;

        *)
                echo "Usage: $0 start | stop | restart" >&2
                exit 1
        ;;
esac