ARDOP - Added support for logging to users home directory

This commit is contained in:
Gaston Gonzalez
2024-11-05 16:46:52 -07:00
parent c9a0480c0d
commit 0dfdb34d4b
2 changed files with 7 additions and 2 deletions
+3 -1
View File
@@ -1,6 +1,6 @@
# Author : Gaston Gonzalez
# Date : 23 April 2024
# Updated : 25 October 2024
# Updated : 5 November 2024
# Description : bash profile
# All user accounts should be in the 'et-data' group to allow data sharing with
@@ -26,3 +26,5 @@ cat /etc/motd
echo -e "${NC}"
export ET_USER_CONFIG=${HOME}/.config/emcomm-tools/user.json
export ET_LOG_DIR=${HOME}/.local/share/emcomm-tools
+4 -1
View File
@@ -16,6 +16,9 @@
ARDOP_PORT=8515
[ -z ${ET_LOG_DIR} ] && ET_LOG_DIR="${HOME}/.local/share/emcomm-tools"
[ ! -e ${ET_LOG_DIR} ] && mkdir -p ${ET_LOG_DIR}
# 1. Check if the symlink was created by the udev rules
if [ -e /dev/et-audio ]; then
@@ -41,6 +44,6 @@ else
exit 1
fi
CMD="ardopcf ${ARDOP_PORT} ${ARDOP_AUDIO_DEVICE} ${ARDOP_AUDIO_DEVICE}"
CMD="ardopcf ${ARDOP_PORT} ${ARDOP_AUDIO_DEVICE} ${ARDOP_AUDIO_DEVICE} --logdir ${ET_LOG_DIR}"
et-log "Starting ARDOP with: '${CMD}'"
${CMD}