#!/bin/sh
#
# Start fbvncserver
#

case "$1" in
  start)
        echo -e "Starting fbvncserevr ...\n"
        fbvncserver -t /dev/input/event1 -k /dev/null -P /etc/vncpwd &
        ;;
  stop)
        echo -e "Stopping fbvncserver ...\n"
        killall fbvncserver
        ;;
  restart|reload)
        "$0" stop
        "$0" start
        ;;
  *)
        echo "Usage: $0 {start|stop|restart}"
        exit 1
esac

exit $?
