mirror of
https://github.com/dockur/windows.git
synced 2025-10-29 04:05:50 +00:00
Update define.sh
This commit is contained in:
parent
3cbf1fcd2a
commit
a69623c281
1 changed files with 17 additions and 13 deletions
|
|
@ -1992,15 +1992,7 @@ prepareXP() {
|
||||||
|
|
||||||
rm -rf "$drivers"
|
rm -rf "$drivers"
|
||||||
|
|
||||||
local oem=""
|
|
||||||
local folder="/oem"
|
|
||||||
local username="Docker"
|
|
||||||
local password="*"
|
|
||||||
local key pid file setup
|
local key pid file setup
|
||||||
|
|
||||||
[ -n "$PASSWORD" ] && password="$PASSWORD"
|
|
||||||
[ -n "$USERNAME" ] && username=$(echo "$USERNAME" | sed 's/[^[:alnum:]@!._-]//g')
|
|
||||||
|
|
||||||
setup=$(find "$target" -maxdepth 1 -type f -iname setupp.ini | head -n 1)
|
setup=$(find "$target" -maxdepth 1 -type f -iname setupp.ini | head -n 1)
|
||||||
pid=$(<"$setup")
|
pid=$(<"$setup")
|
||||||
pid="${pid:(-4)}"
|
pid="${pid:(-4)}"
|
||||||
|
|
@ -2020,14 +2012,29 @@ prepareXP() {
|
||||||
key="B2RBK-7KPT9-4JP6X-QQFWM-PJD6G"
|
key="B2RBK-7KPT9-4JP6X-QQFWM-PJD6G"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
local oem=""
|
||||||
|
local folder="/oem"
|
||||||
|
|
||||||
[ ! -d "$folder" ] && folder="/OEM"
|
[ ! -d "$folder" ] && folder="/OEM"
|
||||||
[ ! -d "$folder" ] && folder="$STORAGE/oem"
|
[ ! -d "$folder" ] && folder="$STORAGE/oem"
|
||||||
[ ! -d "$folder" ] && folder="$STORAGE/OEM"
|
[ ! -d "$folder" ] && folder="$STORAGE/OEM"
|
||||||
|
|
||||||
if [ -d "$folder" ]; then
|
if [ -d "$folder" ]; then
|
||||||
oem="\"Script\"=\"cmd /C if exist \\\"C:\OEM\install.bat\\\" start \\\"Install\\\" \\\"cmd /C C:\OEM\install.bat\\\"\""
|
|
||||||
|
file=$(find "$folder" -maxdepth 1 -type f -iname install.bat | head -n 1)
|
||||||
|
|
||||||
|
if [ -f "$file" ]; then
|
||||||
|
unix2dos -q "$file"
|
||||||
|
oem="\"Script\"=\"start cmd /C C:\\OEM\\install.bat\""
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
local username="Docker"
|
||||||
|
local password="*"
|
||||||
|
|
||||||
|
[ -n "$PASSWORD" ] && password="$PASSWORD"
|
||||||
|
[ -n "$USERNAME" ] && username=$(echo "$USERNAME" | sed 's/[^[:alnum:]@!._-]//g')
|
||||||
|
|
||||||
find "$target" -maxdepth 1 -type f -iname winnt.sif -exec rm {} \;
|
find "$target" -maxdepth 1 -type f -iname winnt.sif -exec rm {} \;
|
||||||
|
|
||||||
{ echo "[Data]"
|
{ echo "[Data]"
|
||||||
|
|
@ -2120,7 +2127,7 @@ prepareXP() {
|
||||||
echo "\"DefaultSettings.XResolution\"=dword:00000780"
|
echo "\"DefaultSettings.XResolution\"=dword:00000780"
|
||||||
echo "\"DefaultSettings.YResolution\"=dword:00000438"
|
echo "\"DefaultSettings.YResolution\"=dword:00000438"
|
||||||
echo ""
|
echo ""
|
||||||
echo "[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\RunOnceEx]"
|
echo "[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\RunOnce]"
|
||||||
echo "\"ScreenSaver\"=\"reg add \\\"HKCU\\\\Control Panel\\\\Desktop\\\" /f /v \\\"SCRNSAVE.EXE\\\" /t REG_SZ /d \\\"off\\\"\""
|
echo "\"ScreenSaver\"=\"reg add \\\"HKCU\\\\Control Panel\\\\Desktop\\\" /f /v \\\"SCRNSAVE.EXE\\\" /t REG_SZ /d \\\"off\\\"\""
|
||||||
echo "\"ScreenSaverOff\"=\"reg add \\\"HKCU\\\\Control Panel\\\\Desktop\\\" /f /v \\\"ScreenSaveActive\\\" /t REG_SZ /d \\\"0\\\"\""
|
echo "\"ScreenSaverOff\"=\"reg add \\\"HKCU\\\\Control Panel\\\\Desktop\\\" /f /v \\\"ScreenSaveActive\\\" /t REG_SZ /d \\\"0\\\"\""
|
||||||
echo "$oem"
|
echo "$oem"
|
||||||
|
|
@ -2152,9 +2159,6 @@ prepareXP() {
|
||||||
error "Failed to copy OEM folder!" && return 1
|
error "Failed to copy OEM folder!" && return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
file=$(find "$folder" -maxdepth 1 -type f -iname install.bat | head -n 1)
|
|
||||||
[ -f "$file" ] && unix2dos -q "$file"
|
|
||||||
|
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue