#!/bin/sh ### BEGIN INIT INFO # Provides: rtd-ecan527 # Required-Start: # Required-Stop: # Should-Start: # Should-Stop: # Default-Start: # Default-Stop: # Short-Description: Create file descriptors for rtd-ecan527 CAN bus module. # Description: ### END INIT INFO PATH=/sbin:/bin:/usr/bin . /lib/init/vars.sh do_start() { # # Mount local file systems in /etc/fstab. # log_warning_message "About to create devices for rtd-ecan527 card" # WARNING: THIS WILL NOT WORK UNLESS YOU HAVE KEPT THE INSTALL # AND COMPILE DIRECTORY FROM THE DRIVER IN THIS LOCATION!!!!!! cd /usr/local/src/Ecan_Linux_V02.02.01/driver make devices527 cd - } case "$1" in start|"") do_start ;; restart|reload|force-reload) echo "Error: argument '$1' not supported" >&2 exit 3 ;; stop) # No-op ;; *) echo "Usage: rtd-ecan527.sh [start|stop]" >&2 exit 3 ;; esac :