#!/bin/bash
#
#       /etc/rc.*
#
# Source function library.
#. /etc/init.d/functions

#modprobe uinput;

start() {
        echo -n "Starting ct_util..."

	/opt/weida/ct_run &
        return
}

stop() {
        echo -n "Shutting down ct_util..."

	killall ct_util
        return
}

case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    restart)
        stop
        start
        ;;
    *)
        echo "Usage:  {start|stop|restart}"
        exit 1
        ;;
esac
exit $?
