mirror of
https://github.com/dockur/windows.git
synced 2025-03-25 18:07:45 +00:00
fix: File sharing in user-mode (#1136)
This commit is contained in:
parent
522d646fa3
commit
b7ad0d3d88
@ -111,14 +111,8 @@ done
|
||||
if ! smbd; then
|
||||
error "Samba daemon failed to start!"
|
||||
smbd -i --debug-stdout || true
|
||||
else
|
||||
if [[ "${NETWORK,,}" == "user"* ]]; then
|
||||
NET_OPTS="${NET_OPTS/,hostfwd/,guestfwd=tcp:${VM_NET_IP%.*}.1:445-tcp:127.0.0.1:445,hostfwd}"
|
||||
fi
|
||||
fi
|
||||
|
||||
[[ "${NETWORK,,}" == "user"* ]] && return 0
|
||||
|
||||
if [[ "${BOOT_MODE:-}" == "windows_legacy" ]]; then
|
||||
# Enable NetBIOS on Windows 7 and lower
|
||||
if ! nmbd; then
|
||||
|
Loading…
Reference in New Issue
Block a user