et-mode - Added initial user-level systemd services for the Dire Wolf packet modes

This commit is contained in:
Gaston Gonzalez
2024-11-06 10:48:23 -07:00
parent ce5b49b855
commit 08259f0b87
3 changed files with 50 additions and 6 deletions
@@ -0,0 +1,22 @@
# Author : Gaston Gonzalez
# Date : 6 November 2024
# Purpose : User systemd unit file for EmComm Tools Dire Wolf digipeater packet
# : service.
#
# Usage:
# Check status : systemctl --user status et-service-direwolf-digipeater
# Start service : systemctl --user start et-service-direwolf-digipeater
# Stop service : systemctl --user stop et-service-direwolf-digipeater
# Reload this config : systemctl --user daemon-reload
[Unit]
Description=EmComm Tools Dir Wolf simple packet service
# Disable conditional check for audio device. Allow et-ardop to enforce.
#ConditionPathExists=/dev/et-audio
[Service]
ExecStart=/opt/emcomm-tools/bin/et-direwolf start digipeater
Restart=no
[Install]
WantedBy=multi-user.target
@@ -0,0 +1,22 @@
# Author : Gaston Gonzalez
# Date : 6 November 2024
# Purpose : User systemd unit file for EmComm Tools Dire Wolf simple packet
# : service.
#
# Usage:
# Check status : systemctl --user status et-service-direwolf-simple
# Start service : systemctl --user start et-service-direwolf-simple
# Stop service : systemctl --user stop et-service-direwolf-simple
# Reload this config : systemctl --user daemon-reload
[Unit]
Description=EmComm Tools Dir Wolf simple packet service
# Disable conditional check for audio device. Allow et-ardop to enforce.
#ConditionPathExists=/dev/et-audio
[Service]
ExecStart=/opt/emcomm-tools/bin/et-direwolf start simple
Restart=no
[Install]
WantedBy=multi-user.target
+6 -6
View File
@@ -2,7 +2,7 @@
#
# Author : Gaston Gonzalez
# Date : 1 November 2024
# Updated : 3 November 2024
# Updated : 6 November 2024
# Purpose : Wrapper script for starting Dire Wolf with PnP support
#
# Preconditions:
@@ -21,8 +21,8 @@ usage() {
echo " update-config - Update configuration for selected mode"
echo ""
echo " <type>"
echo " digipeater-only - Run in RF-only digipeater mode"
echo " simple-packet - Run in simple packet mode"
echo " digipeater - Run in RF-only digipeater mode"
echo " simple - Run in simple packet mode"
}
if [ $# -ne 2 ]; then
@@ -32,10 +32,10 @@ fi
MODE=$2
case "${MODE}" in
digipeater-only)
digipeater)
DIREWOLF_TEMPLATE_CONF_FILE="${ET_HOME}/conf/template.d/packet/direwolf.${MODE}.conf"
;;
simple-packet)
simple)
DIREWOLF_TEMPLATE_CONF_FILE="${ET_HOME}/conf/template.d/packet/direwolf.${MODE}.conf"
;;
*)
@@ -47,7 +47,7 @@ esac
notify_user() {
notify-send \
-t 5000 \
-t 10000 \
--app-name="EmComm Tools" \
"$1"
}