mirror of
https://github.com/thetechprepper/emcomm-tools-os-community.git
synced 2026-09-17 15:41:44 -04:00
reticulum - Added support for creating ~/.reticulum if does not exist
This commit is contained in:
@@ -1,10 +1,12 @@
|
|||||||
# To-Do
|
# To-Do
|
||||||
|
|
||||||
* [ ] Add Reticulum
|
* [ ] Add Reticulum
|
||||||
* [ ] Add rnsd systemd service (user)
|
* [ ] Add solution for handling first start
|
||||||
* [ ] Add nomadnet systemd service (user)
|
* [ ] et-user-backup
|
||||||
* [ ] Add et-mode with encryption warning
|
* [ ] ~/.reticulum/storage/identities
|
||||||
* [ ] Add support for Bluetooth devices
|
* [ ] ~/.nomadnetwork/storage
|
||||||
|
* [ ] Add PnP support for LoRa devices
|
||||||
|
* [ ] Add support for Bluetooth devices (et-uv-pro)
|
||||||
* [ ] et-mail
|
* [ ] et-mail
|
||||||
* [ ] et-debug
|
* [ ] et-debug
|
||||||
* [ ] et-index
|
* [ ] et-index
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
#
|
#
|
||||||
# Author : Gaston Gonzalez
|
# Author : Gaston Gonzalez
|
||||||
# Date : 12 May 2026
|
# Date : 12 May 2026
|
||||||
|
# Updated : 13 May 2026
|
||||||
# Purpose : Wrapper script for starting Reticulum with PnP support
|
# Purpose : Wrapper script for starting Reticulum with PnP support
|
||||||
#
|
#
|
||||||
# Preconditions:
|
# Preconditions:
|
||||||
@@ -14,7 +15,8 @@
|
|||||||
. /opt/emcomm-tools/bin/et-common
|
. /opt/emcomm-tools/bin/et-common
|
||||||
|
|
||||||
APP="Reticulum"
|
APP="Reticulum"
|
||||||
RETICULUM_CONF_FILE="${HOME}/.reticulum/config"
|
RETICULUM_CONF_DIR="${HOME}/.reticulum"
|
||||||
|
RETICULUM_CONF_FILE="${RETICULUM_CONF_DIR}/config"
|
||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
echo "usage: $(basename $0) <command> <type>"
|
echo "usage: $(basename $0) <command> <type>"
|
||||||
@@ -49,6 +51,11 @@ case "${MODE}" in
|
|||||||
;;
|
;;
|
||||||
esac
|
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
|
if [[ ! -e "${RETICULUM_TEMPLATE_CONF_FILE}" ]]; then
|
||||||
et-log "${RETICULUM_TEMPLATE_CONF_FILE} does not exist. Exiting."
|
et-log "${RETICULUM_TEMPLATE_CONF_FILE} does not exist. Exiting."
|
||||||
notify-user "Config file does not exist. Can't start Reticulum."
|
notify-user "Config file does not exist. Can't start Reticulum."
|
||||||
|
|||||||
Reference in New Issue
Block a user