From c0e2be703d8455a23c25abfed327b987e4a4da9a Mon Sep 17 00:00:00 2001 From: Kroese Date: Mon, 3 Mar 2025 21:45:52 +0100 Subject: [PATCH] Update samba.sh --- src/samba.sh | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/src/samba.sh b/src/samba.sh index bdf232b..d2d8d11 100644 --- a/src/samba.sh +++ b/src/samba.sh @@ -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