mirror of
https://github.com/thetechprepper/emcomm-tools-os-community.git
synced 2026-09-17 15:41:44 -04:00
Initial support for modem73
This commit is contained in:
Executable
+44
@@ -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}
|
||||
+3
-2
@@ -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
|
||||
|
||||
Executable
+7
@@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
# Author : Gaston Gonzalez
|
||||
# Date : 28 June 2026
|
||||
# Purpose : Test modem73 installation
|
||||
|
||||
OUT=$(which modem73)
|
||||
exit $?
|
||||
Reference in New Issue
Block a user