Update define.sh
This commit is contained in:
parent
49e6e5a3f1
commit
d6acc0f387
1 changed files with 32 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue