Winlink - Initial script to install Pat Winlink client

This commit is contained in:
Gaston Gonzalez
2024-11-04 14:28:11 -07:00
parent dcfd3d9e98
commit df59069078
3 changed files with 41 additions and 0 deletions
+31
View File
@@ -0,0 +1,31 @@
#!/bin/bash
# Author : Gaston Gonzalez
# Date : 11 January 2023
# Updated : 4 November 2024
# Purpose : Install Pat Winlink client
set -e
trap 'last_command=$current_command; current_command=$BASH_COMMAND' DEBUG
trap 'et-log "\"${last_command}\" command failed with exit code $?."' ERR
VERSION=0.16.0
FILE="pat_${VERSION}_linux_amd64.deb"
et-log "Installing Pat Winlink client version ${VERSION}..."
TARGET_PATH="${ET_DIST_DIR}/${FILE}"
if [ ! -e ${TARGET_PATH} ]; then
URL="https://github.com/la5nta/pat/releases/download/v${VERSION}/${FILE}"
et-log "Downloading: ${URL}"
curl -s -L -o ${FILE} --fail ${URL}
[ ! -e ${ET_DIST_DIR} ] && mkdir ${ET_DIST_DIR}
[ ! -e ${ET_SRC_DIR} ] && mkdir ${ET_SRC_DIR}
mv -v ${FILE} ${ET_DIST_DIR}
fi
et-log "Installing: ${TARGET_PATH}"
dpkg -i ${TARGET_PATH}
+2
View File
@@ -39,6 +39,8 @@ exitIfNotRoot
./install-direwolf.sh ./install-direwolf.sh
./install-yaac.sh ./install-yaac.sh
./install-winlink.sh
./install-audio-tools.sh ./install-audio-tools.sh
# Add user-specific data # Add user-specific data
+8
View File
@@ -0,0 +1,8 @@
#!/bin/bash
# Author : Gaston Gonzalez
# Date : 3 November 2024
# Updated : 4 November 2024
# Purpose : Test Pat Winlink installation
OUT=$(pat version | grep v0.16.0)
exit $?