Tina support

This commit is contained in:
tb14
2019-08-05 06:31:53 -07:00
parent b744b7ae08
commit b0384971a6
3 changed files with 14 additions and 11 deletions
+3 -3
View File
@@ -42,7 +42,7 @@ function maybeOS_Support() {
if (yad --image=/tmp/banner.png --center \
--title "Not Supported OS" \
--text "Your OS may be compatible with this installer but has not been \
tested.\n\nThis installer has been tested on Raspbian Stretch, Ubuntu \
tested.\n\nThis installer has been tested on Raspbian Stretch, Buster, Ubuntu \
18.04, and Mint 18.3 / 19.1.\n\nWould you like to continue anyway?" ${r} ${c}) then
yad --image=/tmp/banner.png --center \
--title "Not Supported OS" \
@@ -63,14 +63,14 @@ tested.\n\nThis installer has been tested on Raspbian Stretch, Ubuntu \
PLAT=$(lsb_release -si)
OSCN=$(lsb_release -sc) # We want this to be trusty xenial bionic; jessie
#strech; sara serena sonya sylvia tara tessa
#strech buster; sara serena sonya sylvia tara tessa
else # else get info from os-release
PLAT=$(grep "^NAME" /etc/os-release | awk -F "=" '{print $2}' | tr -d '"' \
| awk '{print $1}')
VER=$(grep "VERSION_ID" /etc/os-release | awk -F "=" '{print $2}' | tr -d '"')
declare -A VER_MAP=(["9"]="stretch" ["8"]="jessie" ["16.04"]="xenial" \
declare -A VER_MAP=(["10"]="buster" ["9"]="stretch" ["8"]="jessie" ["16.04"]="xenial" \
["14.04"]="trusty" ["18.04"]="bionic" ["18"]="sara" ["18.1"]="serena" \
["18.2"]="sonya" ["18.3"]="sylvia" ["19"]="tara" ["19.1"]="tessa" )
OSCN=${VER_MAP["${VER}"]}