dl5di / OpenDV

Open Digital Voice software for Amateur Radio based on Jonathan Naylor's (G4KLX) "ircDDBGateway" and "PCRepeaterController" for D-Star
GNU General Public License v2.0
106 stars 63 forks source link

a helpful modification for /etc/init.d/AMBEserver #163

Open csylvain opened 5 years ago

csylvain commented 5 years ago

"as is" the parameters are plug-n-play for the DVDongle (blue box), right? it needs to be a little different for the ThumbDV dongle (formerly DV3000u).

the documentation available is for both old versions of hardware and AMBEserver and new versions - though it seems the older docs are more abundant. it makes for confusion.

so, with this small change, at least there will be something to point a newcomer in the right direction: `#! /bin/sh

BEGIN INIT INFO

Provides: AMBEserver

Required-Start: $local_fs $remote_fs

Required-Stop:

X-Start-Before:

Default-Start: 2 3 4 5

Default-Stop:

Short-Description: Provide AMBE Encode/Decode

Description: Provide daemon for AMBE Encoding and Decoding

END INIT INFO

N=/etc/init.d/AMBEserver

set -e

case "$1" in start)

ThumbDV with AMBEserver as system-wide service

# activate on command line using: sudo service AMBEserver start
/usr/local/sbin/AMBEserver -d -i /dev/ttyUSB0 -s 460800
# all others - comment out the previous and uncomment the following
# /usr/bin/AMBEserver -d -i /dev/ttyUSB0
echo "Starting AMBEserver" >&2
exit 0
;;

stop) killall AMBEserver exit 0 ;; reload|restart|force-reload|status) ;; *) echo "Usage: $N {start|stop}" >&2 exit 1 ;; esac

exit 0`