|
3 | 3 | # Run this from crontab periodically to start up
|
4 | 4 | # Dire Wolf automatically.
|
5 | 5 |
|
6 |
| -# Versioning |
| 6 | +# See User Guide for more discussion. |
| 7 | +# For release 1.4 it is section 5.7 "Automatic Start Up After Reboot" |
| 8 | +# but it could change in the future as more information is added. |
| 9 | + |
| 10 | + |
| 11 | +# Versioning (this file, not direwolf version) |
7 | 12 | #-----------
|
| 13 | +# v1.3 - KI6ZHD - added variable support for direwolf binary location |
8 | 14 | # v1.2 - KI6ZHD - support different versions of VNC
|
9 | 15 | # v1.1 - KI6ZHD - expanded version to support running on text-only displays with
|
10 | 16 | # auto support; log placement change
|
|
25 | 31 |
|
26 | 32 | RUNMODE=AUTO
|
27 | 33 |
|
| 34 | +# Location of the direwolf binary. Depends on $PATH as shown. |
| 35 | +# change this if you want to use some other specific location. |
| 36 | +# e.g. DIREWOLF="/usr/local/bin/direwolf" |
| 37 | + |
| 38 | +DIREWOLF="direwolf" |
28 | 39 |
|
29 | 40 | #Direwolf start up command :: two examples where example one is enabled
|
30 | 41 | #
|
31 | 42 | # 1. For normal operation as TNC, digipeater, IGate, etc.
|
32 | 43 | # Print audio statistics each 100 seconds for troubleshooting.
|
33 | 44 | # Change this command to however you wish to start Direwolf
|
34 |
| -DWCMD="direwolf -a 100" |
| 45 | + |
| 46 | +DWCMD="$DIREWOLF -a 100" |
| 47 | + |
35 | 48 | #---------------------------------------------------------------
|
36 | 49 | #
|
37 | 50 | # 2. Alternative for running with SDR receiver.
|
38 | 51 | # Piping one application into another makes it a little more complicated.
|
39 |
| -# We need to use bash for the | to be recognized. |
| 52 | +# We need to use bash for the | to be recognized. |
| 53 | + |
40 | 54 | #DWCMD="bash -c 'rtl_fm -f 144.39M - | direwolf -c sdr.conf -r 24000 -D 1 -'"
|
41 | 55 |
|
42 | 56 |
|
@@ -64,11 +78,11 @@ function CLI {
|
64 | 78 | # Screen commands
|
65 | 79 | # -d m :: starts the command in detached mode
|
66 | 80 | # -S :: name the session
|
67 |
| - $SCREEN -d -m -S direwolf $DWCMD |
| 81 | + $SCREEN -d -m -S direwolf $DWCMD >> $LOGFILE |
68 | 82 | SUCCESS=1
|
69 | 83 |
|
70 |
| - screen -list direwolf |
71 |
| - screen -list direwolf >> $LOGFILE |
| 84 | + $SCREEN -list direwolf |
| 85 | + $SCREEN -list direwolf >> $LOGFILE |
72 | 86 |
|
73 | 87 | echo "-----------------------"
|
74 | 88 | echo "-----------------------" >> $LOGFILE
|
|
0 commit comments