feat: Disable NetBIOS if user-mode networking

This commit is contained in:
Kroese 2025-10-03 00:59:09 +02:00 committed by GitHub
parent 77480804ef
commit 5659082f99
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -134,6 +134,8 @@ if [[ "$SAMBA_DEBUG" == [Yy1]* ]]; then
smbd -i -d "$SAMBA_LEVEL" --debug-stdout & smbd -i -d "$SAMBA_LEVEL" --debug-stdout &
fi fi
[[ "${NETWORK,,}" == "user"* ]] && return 0
if [[ "${BOOT_MODE:-}" == "windows_legacy" ]]; then if [[ "${BOOT_MODE:-}" == "windows_legacy" ]]; then
# Enable NetBIOS on Windows 7 and lower # Enable NetBIOS on Windows 7 and lower
@ -152,8 +154,6 @@ if [[ "${BOOT_MODE:-}" == "windows_legacy" ]]; then
else else
if [[ "${NETWORK,,}" != "user"* ]]; then
# Enable Web Service Discovery on Vista and up # Enable Web Service Discovery on Vista and up
[[ "$DEBUG" == [Yy1]* ]] && echo "Starting Web Service Discovery daemon..." [[ "$DEBUG" == [Yy1]* ]] && echo "Starting Web Service Discovery daemon..."
@ -163,8 +163,6 @@ else
wsddn -i "$interface" -H "$hostname" --pid-file=/var/run/wsdd.pid & wsddn -i "$interface" -H "$hostname" --pid-file=/var/run/wsdd.pid &
fi fi
fi
fi fi
return 0 return 0