mirror of
https://github.com/thetechprepper/emcomm-tools-os-community.git
synced 2026-09-17 15:41:44 -04:00
et-mode - Added initial user-level systemd services for the Dire Wolf packet modes
This commit is contained in:
@@ -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
|
||||
@@ -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"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user