#!/bin/sh
#
# Created by zhangjiachang for start-up wifitcard
# Copyright (c) 2012 ZTE Incorporated.  All Rights Reserved.
# ZTE Proprietary and Confidential.

# start_wifitcard    init.d script to start ZTE wifitcard daemon

set -e

case "$1" in
    start)
        echo -n "Starting wifitcard: "
        start-stop-daemon -S -b -a /usr/bin/wifitcard
        echo "done"
        ;;
    stop)
        echo -n "Stopping wifitcard: "
        start-stop-daemon -K -n wifitcard
        echo "done"
        ;;
    restart)
        $0 stop
        $0 start
        ;;
    *)
        echo "Usage wifitcard { start | stop | restart}" >&2
        exit 1
        ;;
esac

