mirror of
https://github.com/dockur/windows.git
synced 2025-10-27 03:15:49 +00:00
feat: Use q35 machine type for Windows XP (#823)
This commit is contained in:
parent
80c5ba2231
commit
bc614fd233
4 changed files with 30 additions and 29 deletions
12
src/samba.sh
12
src/samba.sh
|
|
@ -94,16 +94,8 @@ if ! smbd; then
|
|||
smbd -i --debug-stdout || true
|
||||
fi
|
||||
|
||||
legacy=""
|
||||
|
||||
if [ -f "$STORAGE/windows.old" ]; then
|
||||
MT=$(<"$STORAGE/windows.old")
|
||||
[[ "${MT,,}" == "pc-q35-2"* ]] && legacy="y"
|
||||
[[ "${MT,,}" == "pc-i440fx-2"* ]] && legacy="y"
|
||||
fi
|
||||
|
||||
if [ -n "$legacy" ]; then
|
||||
# Enable NetBIOS on Windows XP and lower
|
||||
if [[ "${BOOT_MODE:-}" == "windows_legacy" ]]; then
|
||||
# Enable NetBIOS on Windows 7 and lower
|
||||
if ! nmbd; then
|
||||
error "NetBIOS daemon failed to start!"
|
||||
nmbd -i --debug-stdout || true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue