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
ef7eb4f84f
commit
db26ed4728
@ -1386,21 +1386,26 @@ prepareInstall() {
|
|||||||
if [ -n "$setup" ]; then
|
if [ -n "$setup" ]; then
|
||||||
|
|
||||||
pid=$(<"$setup")
|
pid=$(<"$setup")
|
||||||
|
pid="${pid%$'\r'}"
|
||||||
|
|
||||||
|
case "$pid" in
|
||||||
|
*"000" | *"270" | *"OEM" ) ;;
|
||||||
|
* ) warn "unknown PID: ${pid:(-3)}" ;;
|
||||||
|
esac
|
||||||
|
|
||||||
if [[ "$driver" == "2k" ]]; then
|
if [[ "$driver" == "2k" ]]; then
|
||||||
|
|
||||||
echo "${pid:0:$((${#pid})) - 4}270" > "$setup"
|
echo "${pid:0:$((${#pid})) - 3}270" > "$setup"
|
||||||
|
|
||||||
else
|
else
|
||||||
|
|
||||||
pid="${pid:(-4)}"
|
if [[ "$pid" != *"270" ]]; then
|
||||||
|
echo "${pid:0:$((${#pid})) - 3}000" > "$setup"
|
||||||
if [[ "${pid:0:3}" == "270" ]]; then
|
else
|
||||||
warn "this version of $desc requires a volume license key (VLK), it will ask for one during installation."
|
warn "this version of $desc requires a volume license key (VLK), it will ask for one during installation."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
mkdir -p "$dir/\$OEM\$"
|
mkdir -p "$dir/\$OEM\$"
|
||||||
|
Loading…
Reference in New Issue
Block a user