#!/bin/bash
### BEGIN INIT INFO
# Provides:				    Serial_Fintek_f81504
# Required-Start:		  $local_fs $remote_fs $syslog $network $time
# Required-Stop:		  $local_fs $remote_fs $syslog $network 
# Default-Start:		  2 3 4 5
# Default-Stop:			  0 1 6
# Short-Description:	INNODISK Serial_Fintek_f81504 Starter
# Description:			  INNODISK Serial_Fintek_f81504 Starter, used for initialize with configuration
### END INIT INFO

### parameter
tool_name=serial_f81504_tool
config_path=/etc/serial_f81504.cfg # use full path.

do_start()
{
  sudo ${tool_name} -i -c ${config_path}
}

# Carry out specific functions when asked to by the system
case "$1" in
  start)
    echo "$0: Starting run_f81504" > /dev/kmsg
    do_start
    ;;
  stop)
    ;;
  *)
    echo "$0: Usage: $0 {start|stop}" > /dev/kmsg
    exit 1
    ;;
esac
 
exit 0