reticulum - Added support for creating ~/.reticulum if does not exist

This commit is contained in:
thetechprepper
2026-05-13 07:39:59 -07:00
parent 9118989b95
commit 7cfa0d58a6
2 changed files with 14 additions and 5 deletions
+8 -1
View File
@@ -2,6 +2,7 @@
#
# Author : Gaston Gonzalez
# Date : 12 May 2026
# Updated : 13 May 2026
# Purpose : Wrapper script for starting Reticulum with PnP support
#
# Preconditions:
@@ -14,7 +15,8 @@
. /opt/emcomm-tools/bin/et-common
APP="Reticulum"
RETICULUM_CONF_FILE="${HOME}/.reticulum/config"
RETICULUM_CONF_DIR="${HOME}/.reticulum"
RETICULUM_CONF_FILE="${RETICULUM_CONF_DIR}/config"
usage() {
echo "usage: $(basename $0) <command> <type>"
@@ -49,6 +51,11 @@ case "${MODE}" in
;;
esac
if [[ ! -e "${RETICULUM_CONF_DIR}" ]]; then
et-log "Creating missing configuration directory: ${RETICULUM_CONF_DIR}"
mkdir -p "${RETICULUM_CONF_DIR}"
fi
if [[ ! -e "${RETICULUM_TEMPLATE_CONF_FILE}" ]]; then
et-log "${RETICULUM_TEMPLATE_CONF_FILE} does not exist. Exiting."
notify-user "Config file does not exist. Can't start Reticulum."