mirror of
https://gitlab.com/amrron/setup-scripts.git
synced 2026-10-17 01:54:00 -04:00
Tina support
This commit is contained in:
@@ -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}"]}
|
||||
|
||||
Reference in New Issue
Block a user