diff --git a/scripts/install-flamp.sh b/scripts/install-flamp.sh index cb9b09d..24df881 100755 --- a/scripts/install-flamp.sh +++ b/scripts/install-flamp.sh @@ -45,3 +45,5 @@ ln -v -s ${INSTALL_DIR} ${LINK_PATH} sed -i 's|^Exec.*|Exec=/opt/emcomm-tools/bin/et-flamp start|' /opt/flamp/share/applications/flamp.desktop stow -v -d /opt ${APP} -t /usr/local + +cd ${CWD_DIR} diff --git a/scripts/install-flmsg.sh b/scripts/install-flmsg.sh index d9b2731..f139a61 100755 --- a/scripts/install-flmsg.sh +++ b/scripts/install-flmsg.sh @@ -2,7 +2,7 @@ # Author : William McKeehan # Author : Gaston Gonzalez # Date : 18 November 2025 -# Updated : 13 March 2026 +# Updated : 14 March 2026 # Purpose : Builds and installs flmsg set -e trap 'last_command=$current_command; current_command=$BASH_COMMAND' DEBUG @@ -49,3 +49,5 @@ sed -i 's|^Exec.*|Exec=/opt/emcomm-tools/bin/et-flmsg start|' /opt/flmsg/share/a cp -v /opt/flmsg/share/applications/flmsg.desktop /usr/share/applications/flmsg.desktop stow -v -d /opt ${APP} -t /usr/local + +cd ${CWD} diff --git a/scripts/install-ventoy.sh b/scripts/install-ventoy.sh new file mode 100755 index 0000000..d47c49b --- /dev/null +++ b/scripts/install-ventoy.sh @@ -0,0 +1,40 @@ +#!/bin/bash +# Author : Gaston Gonzalez +# Date : 16 March 2026 +# Purpose : Install Ventoy +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 +. ../overlay/opt/emcomm-tools/bin/et-common + +APP=ventoy +VERSION=1.1.10 +FILE=ventoy-${VERSION}-linux.tar.gz +INSTALL_DIR=/opt/${APP}-${VERSION} +LINK_PATH=/opt/${APP} + +et-log "Installing ${APP}..." + +if [[ ! -e "${ET_DIST_DIR}/${FILE}" ]]; then + URL=https://sourceforge.net/projects/ventoy/files/v${VERSION}/${FILE}/download + + et-log "Downloading ${APP}: ${URL}" + download_with_retries ${URL} ${FILE} + + mv -v ${FILE} ${ET_DIST_DIR} +fi + +CWD_DIR=$(pwd) + +if [[ ! -e ${INSTALL_DIR} ]]; then + cd /opt && tar -xzf ${ET_DIST_DIR}/${FILE} +else + et-log "${INSTALL_DIR} already exists." +fi + +[ -e ${LINK_PATH} ] && rm ${LINK_PATH} +ln -s ${INSTALL_DIR} ${LINK_PATH} + +cd ${CWD_DIR} diff --git a/scripts/install.sh b/scripts/install.sh index 9c3fee2..a228749 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -103,5 +103,8 @@ exitIfNotRoot # Install security tools ./install-gpa.sh +# Install ISO tools +./install-ventoy.sh + # Install offline resources ./install-offline-lib.sh diff --git a/tests/test-ventoy.sh b/tests/test-ventoy.sh new file mode 100755 index 0000000..1a98b05 --- /dev/null +++ b/tests/test-ventoy.sh @@ -0,0 +1,7 @@ +#!/bin/bash +# Author : Gaston Gonzalez +# Date : 14 March 2026 +# Purpose : Test Ventoy install + +OUT=$(ls /opt/ventoy/Ventoy2Disk.sh) +exit $?