diff --git a/scripts/install-modem73.sh b/scripts/install-modem73.sh new file mode 100755 index 0000000..b04d1dc --- /dev/null +++ b/scripts/install-modem73.sh @@ -0,0 +1,44 @@ +#!/bin/bash +# Author : Gaston Gonzalez +# Date : 28 June 2026 +# Purpose : Installs modem73 +set -e +trap 'last_command=$current_command; current_command=$BASH_COMMAND' DEBUG +trap 'et-log "\"${last_command}\" command failed with exit code $?."' ERR + +. ./env.sh + +APP="modem73" +VERSION="1.0.7" +APP_AND_VERSION="${APP}-${VERSION}" +GIT_URL="https://github.com/thetechprepper/modem73.git" +GIT_WORKSPACE="modem73" +INSTALL_DIR="/opt/${APP_AND_VERSION}" +INSTALL_BIN_DIR="${INSTALL_DIR}/bin" +LINK_PATH="/opt/${APP}" + +et-log "Installing ${APP} dependencies..." +apt install \ + libncurses-dev \ + -y + +et-log "Installing ${APP} ${VERSION}" + +CWD_DIR=`pwd` + +cd ${ET_SRC_DIR} +[[ ! -e ${GIT_WORKSPACE} ]] && git clone ${GIT_URL} ${GIT_WORKSPACE} + +cd ${GIT_WORKSPACE} +make + +[[ ! -e "${INSTALL_BIN_DIR}" ]] && mkdir -v -p "${INSTALL_BIN_DIR}" +[[ -e "${APP}" ]] && cp ${APP} "${INSTALL_BIN_DIR}" + + +[[ -e ${LINK_PATH} ]] && rm ${LINK_PATH} +ln -v -s ${INSTALL_DIR} ${LINK_PATH} + +stow -v -d /opt ${APP} -t /usr/local + +cd ${CWD} diff --git a/scripts/install.sh b/scripts/install.sh index 2e283d6..81aee52 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -2,7 +2,7 @@ # # Author : Gaston Gonzalez # Date : 16 March 2024 -# Updated : 13 May 2026 +# Updated : 28 June 2026 # Purpose : Main installer for EmComm Tools Community (ETC) . ./env.sh @@ -119,9 +119,10 @@ exitIfNotRoot # Security Patches ./patch-copy-fail.sh -# Install Reticulum and related applications (NomadNet, MeshChat) +# Install Reticulum and related applications ./install-reticulum.sh ./install-meshchat.sh +./install-modem73.sh # Debrand Ubuntu ./debrand.sh diff --git a/tests/test-modem73.sh b/tests/test-modem73.sh new file mode 100755 index 0000000..753791e --- /dev/null +++ b/tests/test-modem73.sh @@ -0,0 +1,7 @@ +#!/bin/bash +# Author : Gaston Gonzalez +# Date : 28 June 2026 +# Purpose : Test modem73 installation + +OUT=$(which modem73) +exit $?