Update samba.sh

This commit is contained in:
Kroese 2025-03-03 21:45:52 +01:00 committed by GitHub
parent 61b7d0014b
commit c0e2be703d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -108,16 +108,8 @@ if ! smbd; then
smbd -i --debug-stdout || true
fi
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
fi
else
# Enable Web Service Discovery on Vista and up
wsdd -i "$interface" -p -n "$hostname" &
echo "$!" > /var/run/wsdd.pid
fi
# Enable Web Service Discovery
wsdd -i "$interface" -p -n "$hostname" &
echo "$!" > /var/run/wsdd.pid
return 0