mirror of
https://gitlab.com/amrron/setup-scripts.git
synced 2026-10-17 01:54:00 -04:00
Updated version checking for 21.3 Virginia. Testing updates on Vara Install script.
This commit is contained in:
+10
-18
@@ -1,9 +1,9 @@
|
||||
#!/bin/bash
|
||||
################################################################################
|
||||
################################################################################
|
||||
####################### AmRRON Vara Setup v.0.2 #########################
|
||||
####################### AmRRON Vara Setup v.0.4 #########################
|
||||
####################### Created by TB-14 #########################
|
||||
####################### 06 NOV 2022 #########################
|
||||
####################### 26 Feb 2024 #########################
|
||||
################################################################################
|
||||
################################################################################
|
||||
|
||||
@@ -129,7 +129,7 @@ tested.\n\nThis installer has been tested on Raspberry Pi OS Buster and Bullseye
|
||||
VER=$(grep "VERSION_ID" /etc/os-release | awk -F "=" '{print $2}' | tr -d '"')
|
||||
declare -A VER_MAP=(["11"]="bullseye" ["10"]="buster" ["9"]="stretch" ["8"]="jessie" ["16.04"]="xenial" \
|
||||
["14.04"]="trusty" ["18.04"]="bionic" ["18.10"]="cosmic" ["19.04"]="disco" ["19.10"]="eoan" ["20.04"]="focal" ["18"]="sara" ["18.1"]="serena" \
|
||||
["18.2"]="sonya" ["18.3"]="sylvia" ["19"]="tara" ["19.1"]="tessa" ["19.2"]="tina" ["19.3"]="tricia" ["20"]="ulyana" ["20.3"]="una" ["21"]="vanessa" )
|
||||
["18.2"]="sonya" ["18.3"]="sylvia" ["19"]="tara" ["19.1"]="tessa" ["19.2"]="tina" ["19.3"]="tricia" ["20"]="ulyana" ["20.3"]="una" ["21"]="vanessa" ["21.1"]="vera" ["21.2"]="victoria" ["21.3"]="virginia" )
|
||||
OSCN=${VER_MAP["${VER}"]}
|
||||
|
||||
fi
|
||||
@@ -137,7 +137,7 @@ tested.\n\nThis installer has been tested on Raspberry Pi OS Buster and Bullseye
|
||||
case ${PLAT} in
|
||||
Raspbian|Debian|Linuxmint)
|
||||
case ${OSCN} in
|
||||
buster|bullseye|una|vanessa)
|
||||
buster|bullseye|una|vanessa|vera|victoria|virginia)
|
||||
;;
|
||||
*)
|
||||
maybeOS_Support
|
||||
@@ -194,10 +194,10 @@ echo "VARA FM: ${VARAFMVER} available"
|
||||
#VARACHATVER=$(curl -s https://rosmodem.wordpress.com/ | grep -m 1 "VARA Chat" | awk -F "VARA Chat" '{print $2}' | awk -F " " '{print $1}' | sed s/\ //g)
|
||||
|
||||
|
||||
VARAFMLINK=$(curl -s https://rosmodem.wordpress.com/ | grep -oP '(?=https://mega.nz).*?(?=" target="_blank" rel="noopener noreferrer">VARA FM v)')
|
||||
VARAFMLINK=$(https://downloads.winlink.org/VARA%20Products/VARA%20HF%20$VARAFMVER%20setup.zip)
|
||||
echo "VARA FM URL: ${VARAFMLINK}"
|
||||
|
||||
VARAHFLINK=$(curl -s https://rosmodem.wordpress.com/ | grep -oP '(?=https://mega.nz).*?(?=" target="_blank" rel="noopener noreferrer">VARA HF v)')
|
||||
VARAHFLINK=$(https://downloads.winlink.org/VARA%20Products/VARA%20HF%20$VARAHFVER%20setup.zip)
|
||||
echo "VARA HF URL: ${VARAHFLINK}"
|
||||
|
||||
#VARACHATLINK=$(curl -s https://rosmodem.wordpress.com/ | grep -oP '(?=https://mega.nz).*?(?=" target="_blank" rel="noopener noreferrer">VARA Chat v)')
|
||||
@@ -308,27 +308,19 @@ function installvara_mint() {
|
||||
if [[ $OSCN = una ]]; then
|
||||
sudo apt install -y curl libcurl4-openssl-dev libssl-dev ||
|
||||
{ ERRCODE="Failed to install dependencies for pulling vara installation files"; errors; return; }
|
||||
cd $HOME/Downloads && wget -N https://megatools.megous.com/builds/megatools-1.10.3.tar.gz ||
|
||||
{ ERRCODE="Failed to download megatools source code."; errors; return; }
|
||||
tar -xzvf megatools-1.10.3.tar.gz && cd megatools-1.10.3/ ||
|
||||
{ ERRCODE="Failed to extract megatools source code."; errors; return; }
|
||||
./configure && make && sudo make install ||
|
||||
{ ERRCODE="Failed to build megatools source code."; errors; return; }
|
||||
|
||||
elif [[ $OSCN = vanessa ]]; then
|
||||
elif [[ $OSCN =~ (vera|vanessa|victoria|virginia) ]]; then
|
||||
|
||||
sudo apt install -y megatools curl p7zip-full ||
|
||||
sudo apt install -y curl p7zip-full ||
|
||||
{ ERRCODE="Failed to install dependencies for pulling vara installation files"; errors; return; }
|
||||
|
||||
fi
|
||||
|
||||
cd $HOME/Downloads
|
||||
megadl ${VARAHFLINK} ||
|
||||
wget ${VARAHFLINK} ||
|
||||
{ ERRCODE="Failed to download VARA HF"; errors; return; }
|
||||
megadl ${VARAFMLINK} ||
|
||||
wget ${VARAFMLINK} ||
|
||||
{ ERRCODE="Failed to download VARA FM"; errors; return; }
|
||||
#megadl $VARACHATLINK ||
|
||||
#{ ERRCODE="Failed to download VARA Chat"; errors; return; }
|
||||
|
||||
|
||||
unzip VARA\ FM\ $VARAFMVER*.zip ||
|
||||
|
||||
Reference in New Issue
Block a user