mirror of
https://github.com/dockur/windows.git
synced 2025-10-28 11:45:50 +00:00
Update samba.sh
This commit is contained in:
parent
333370ce50
commit
05fee41ad2
1 changed files with 2 additions and 11 deletions
13
src/samba.sh
13
src/samba.sh
|
|
@ -94,17 +94,8 @@ if ! smbd; then
|
||||||
smbd -i --debug-stdout || true
|
smbd -i --debug-stdout || true
|
||||||
fi
|
fi
|
||||||
|
|
||||||
legacy=""
|
if [[ "${BOOT_MODE:-}" == "windows_legacy" ]]; then
|
||||||
|
# Enable NetBIOS on Windows 7 and lower
|
||||||
if [ -f "$STORAGE/windows.old" ]; then
|
|
||||||
# TODO
|
|
||||||
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 ! nmbd; then
|
if ! nmbd; then
|
||||||
error "NetBIOS daemon failed to start!"
|
error "NetBIOS daemon failed to start!"
|
||||||
nmbd -i --debug-stdout || true
|
nmbd -i --debug-stdout || true
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue