mirror of
https://github.com/thetechprepper/emcomm-tools-os-community.git
synced 2026-09-17 15:41:44 -04:00
Compare commits
2 Commits
dev
...
feature/fx25
| Author | SHA1 | Date | |
|---|---|---|---|
| 900ff7753b | |||
| 1372d766ac |
@@ -16,6 +16,8 @@ Description=EmComm Tools Dire Wolf simple packet service
|
||||
|
||||
[Service]
|
||||
ExecStart=/opt/emcomm-tools/bin/et-direwolf start simple
|
||||
#StandardOutput=append:/tmp/et/et.log
|
||||
|
||||
Restart=no
|
||||
|
||||
[Install]
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
#
|
||||
# Author : Gaston Gonzalez
|
||||
# Date : 1 November 2024
|
||||
# Updated : 8 November 2024
|
||||
# Updated : 26 December 2024
|
||||
# Purpose : Wrapper script for starting Dire Wolf with PnP support
|
||||
#
|
||||
# Preconditions:
|
||||
@@ -14,6 +14,15 @@
|
||||
|
||||
DIREWOLF_CONF_FILE=${ET_HOME}/conf/template.d/packet/direwolf.conf
|
||||
|
||||
[ -z ${ET_DEBUG} ] && ET_DEBUG=0
|
||||
|
||||
# Enable FX.25
|
||||
if [ "${ET_DEBUG}" -eq 1 ]; then
|
||||
FX25_OPTS="-X 16 -d x"
|
||||
else
|
||||
FX25_OPTS="-X 16"
|
||||
fi
|
||||
|
||||
usage() {
|
||||
echo "usage: $(basename $0) <command> <type>"
|
||||
echo " <command>"
|
||||
@@ -71,7 +80,7 @@ start() {
|
||||
exit 1
|
||||
fi
|
||||
|
||||
CMD="direwolf -c ${DIREWOLF_CONF_FILE} -l ${ET_LOG_DIR} -t 0 -p"
|
||||
CMD="direwolf -c ${DIREWOLF_CONF_FILE} -t 0 -p ${FX25_OPTS}"
|
||||
et-log "Starting Dire Wolf with: '${CMD}'"
|
||||
echo
|
||||
${CMD}
|
||||
|
||||
Reference in New Issue
Block a user