feat: Added support for Windows 7 x86 (#503)

This commit is contained in:
Kroese 2024-05-16 07:23:29 +02:00 committed by GitHub
parent fb690f2487
commit b0573664de
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 12 additions and 5 deletions

View file

@ -72,14 +72,14 @@ mkdir -p "$share"
! smbd && smbd --debug-stdout
isXP="N"
legacy="N"
if [ -f "$STORAGE/windows.old" ]; then
MT=$(<"$STORAGE/windows.old")
[[ "${MT,,}" == "pc-q35-2"* ]] && isXP="Y"
[[ "${MT,,}" == "pc-q35-2"* ]] && legacy="Y"
fi
if [[ "$isXP" == [Yy1]* ]]; then
if [[ "$legacy" == [Yy1]* ]]; then
[[ "$DHCP" == [Yy1]* ]] && return 0
# Enable NetBIOS on Windows XP
! nmbd && nmbd --debug-stdout