mirror of
https://github.com/thetechprepper/emcomm-tools-os-community.git
synced 2026-09-17 15:41:44 -04:00
Winlink - Initial script to install Pat Winlink client
This commit is contained in:
Executable
+31
@@ -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}
|
||||||
@@ -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
|
||||||
|
|||||||
Executable
+8
@@ -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 $?
|
||||||
Reference in New Issue
Block a user