mirror of
https://github.com/thetechprepper/emcomm-tools-os-community.git
synced 2026-09-17 15:41:44 -04:00
ARDOP - Added support for logging to users home directory
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
# Author : Gaston Gonzalez
|
# Author : Gaston Gonzalez
|
||||||
# Date : 23 April 2024
|
# Date : 23 April 2024
|
||||||
# Updated : 25 October 2024
|
# Updated : 5 November 2024
|
||||||
# Description : bash profile
|
# Description : bash profile
|
||||||
|
|
||||||
# All user accounts should be in the 'et-data' group to allow data sharing with
|
# 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}"
|
echo -e "${NC}"
|
||||||
|
|
||||||
export ET_USER_CONFIG=${HOME}/.config/emcomm-tools/user.json
|
export ET_USER_CONFIG=${HOME}/.config/emcomm-tools/user.json
|
||||||
|
export ET_LOG_DIR=${HOME}/.local/share/emcomm-tools
|
||||||
|
|
||||||
|
|||||||
@@ -16,6 +16,9 @@
|
|||||||
|
|
||||||
ARDOP_PORT=8515
|
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
|
# 1. Check if the symlink was created by the udev rules
|
||||||
if [ -e /dev/et-audio ]; then
|
if [ -e /dev/et-audio ]; then
|
||||||
|
|
||||||
@@ -41,6 +44,6 @@ else
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
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}'"
|
et-log "Starting ARDOP with: '${CMD}'"
|
||||||
${CMD}
|
${CMD}
|
||||||
|
|||||||
Reference in New Issue
Block a user