diff --git a/overlay/etc/skel/.bash_profile b/overlay/etc/skel/.bash_profile index 85352f9..61996bc 100644 --- a/overlay/etc/skel/.bash_profile +++ b/overlay/etc/skel/.bash_profile @@ -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 + diff --git a/overlay/opt/emcomm-tools/bin/et-ardop b/overlay/opt/emcomm-tools/bin/et-ardop index 5d13111..8f6bc5d 100755 --- a/overlay/opt/emcomm-tools/bin/et-ardop +++ b/overlay/opt/emcomm-tools/bin/et-ardop @@ -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}