From d6acc0f3872634691f38e5091760c768776a2c50 Mon Sep 17 00:00:00 2001 From: Kroese Date: Tue, 1 Oct 2024 00:01:01 +0200 Subject: [PATCH] Update define.sh --- src/define.sh | 34 ++++++++++++++++++++++++++++++++-- 1 file changed, 32 insertions(+), 2 deletions(-) diff --git a/src/define.sh b/src/define.sh index 1a22f0a..bd006e3 100644 --- a/src/define.sh +++ b/src/define.sh @@ -315,7 +315,7 @@ printEdition() { edition="Enterprise" ;; *"-iot" | *"-iot-eval" ) - edition="LTSC" + edition="IoT" ;; *"-ltsc" | *"-ltsc-eval" ) edition="LTSC" @@ -396,7 +396,7 @@ getVersion() { case "${id,,}" in "win10"* | "win11"* ) case "${name,,}" in - *" iot"* ) id="$id-ltsc" ;; + *" iot"* ) id="$id-iot" ;; *" ltsc"* ) id="$id-ltsc" ;; *" enterprise evaluation"* ) id="$id-enterprise-eval" ;; *" enterprise"* ) id="$id-enterprise" ;; @@ -424,6 +424,36 @@ switchEdition() { return 0 } +getMido() { + + local id="$1" + local lang="$2" + local ret="$3" + local sum="" + local size="" + + [[ "${lang,,}" != "en" ]] && [[ "${lang,,}" != "en-us" ]] && return 0 + + case "${id,,}" in + "win11x64-enterprise-ltsc-eval" ) + size=5 + sum="xxx" + ;; + "win11x64-enterprise-iot-eval" ) + size=5 + sum="xxx" + ;; + esac + + case "${ret,,}" in + "sum" ) echo "$sum" ;; + "size" ) echo "$size" ;; + *) echo "";; + esac + + return 0 +} + getLink1() { # Fallbacks for users who cannot connect to the Microsoft servers