fix: Disable NetBIOS in DHCP mode

This commit is contained in:
Kroese 2024-04-27 15:42:43 +02:00 committed by GitHub
parent 166ae138e0
commit 84ea9ee36e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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