mirror of
https://github.com/dockur/windows.git
synced 2025-04-23 17:12:52 +00:00
Update define.sh
This commit is contained in:
parent
855f83e395
commit
154108830e
@ -1380,7 +1380,8 @@ prepareInstall() {
|
|||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
local pid file setup
|
local pid=""
|
||||||
|
local file setup
|
||||||
setup=$(find "$target" -maxdepth 1 -type f -iname setupp.ini -print -quit)
|
setup=$(find "$target" -maxdepth 1 -type f -iname setupp.ini -print -quit)
|
||||||
|
|
||||||
if [ -n "$setup" ]; then
|
if [ -n "$setup" ]; then
|
||||||
@ -1436,36 +1437,34 @@ prepareInstall() {
|
|||||||
local ip="20.20.20.1"
|
local ip="20.20.20.1"
|
||||||
[ -n "${VM_NET_IP:-}" ] && ip="${VM_NET_IP%.*}.1"
|
[ -n "${VM_NET_IP:-}" ] && ip="${VM_NET_IP%.*}.1"
|
||||||
|
|
||||||
|
if [ -z "$KEY" ] && [[ "$pid" != *"270" ]]; then
|
||||||
|
|
||||||
# These are not pirated keys, they come from the official MS documentation.
|
# These are not pirated keys, they come from the official MS documentation.
|
||||||
case "${driver,,}" in
|
case "${driver,,}" in
|
||||||
"xp" )
|
"xp" )
|
||||||
|
|
||||||
if [[ "${arch,,}" == "x86" ]]; then
|
if [[ "${arch,,}" == "x86" ]]; then
|
||||||
# Windows XP Professional x86 generic key (no activation, trial-only)
|
# Windows XP Professional x86 generic key (no activation, trial-only)
|
||||||
[ -z "$KEY" ] && KEY="DR8GV-C8V6J-BYXHG-7PYJR-DB66Y"
|
KEY="DR8GV-C8V6J-BYXHG-7PYJR-DB66Y"
|
||||||
else
|
else
|
||||||
# Windows XP Professional x64 generic key (no activation, trial-only)
|
# Windows XP Professional x64 generic key (no activation, trial-only)
|
||||||
[ -z "$KEY" ] && KEY="B2RBK-7KPT9-4JP6X-QQFWM-PJD6G"
|
KEY="B2RBK-7KPT9-4JP6X-QQFWM-PJD6G"
|
||||||
fi ;;
|
fi ;;
|
||||||
|
|
||||||
"2k3" )
|
"2k3" )
|
||||||
|
|
||||||
if [[ "${arch,,}" == "x86" ]]; then
|
if [[ "${arch,,}" == "x86" ]]; then
|
||||||
# Windows Server 2003 Standard x86 generic key (no activation, trial-only)
|
# Windows Server 2003 Standard x86 generic key (no activation, trial-only)
|
||||||
[ -z "$KEY" ] && KEY="QKDCQ-TP2JM-G4MDG-VR6F2-P9C48"
|
KEY="QKDCQ-TP2JM-G4MDG-VR6F2-P9C48"
|
||||||
else
|
else
|
||||||
# Windows Server 2003 Standard x64 generic key (no activation, trial-only)
|
# Windows Server 2003 Standard x64 generic key (no activation, trial-only)
|
||||||
[ -z "$KEY" ] && KEY="P4WJG-WK3W7-3HM8W-RWHCK-8JTRY"
|
KEY="P4WJG-WK3W7-3HM8W-RWHCK-8JTRY"
|
||||||
fi ;;
|
fi ;;
|
||||||
|
|
||||||
"2k" )
|
|
||||||
|
|
||||||
KEY="" ;;
|
|
||||||
|
|
||||||
* ) error "Unknown version: \"$driver\"" && return 1 ;;
|
|
||||||
|
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
||||||
[ -n "$KEY" ] && KEY="ProductID=$KEY"
|
[ -n "$KEY" ] && KEY="ProductID=$KEY"
|
||||||
|
|
||||||
find "$target" -maxdepth 1 -type f -iname winnt.sif -exec rm {} \;
|
find "$target" -maxdepth 1 -type f -iname winnt.sif -exec rm {} \;
|
||||||
|
Loading…
Reference in New Issue
Block a user