From 02832de05cc1c1c4734a75a0d88a4e71338dd844 Mon Sep 17 00:00:00 2001 From: Kroese Date: Thu, 2 Oct 2025 10:40:49 +0200 Subject: [PATCH] feat: Add additional debug messages --- src/samba.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/samba.sh b/src/samba.sh index 6c3d38f..599d8ae 100644 --- a/src/samba.sh +++ b/src/samba.sh @@ -18,6 +18,8 @@ if [[ "${NETWORK,,}" == "user"* ]]; then interface="127.0.0.1" fi +[[ "$DEBUG" == [Yy1]* ]] && echo "Starting Samba daemon..." + addShare() { local dir="$1" local name="$2" @@ -123,12 +125,14 @@ fi if [[ "${BOOT_MODE:-}" == "windows_legacy" ]]; then # Enable NetBIOS on Windows 7 and lower + [[ "$DEBUG" == [Yy1]* ]] && echo "Starting NetBIOS daemon..." if ! nmbd; then error "NetBIOS daemon failed to start!" nmbd -i --debug-stdout || true fi else # Enable Web Service Discovery on Vista and up + [[ "$DEBUG" == [Yy1]* ]] && echo "Starting Web Service Discovery daemon..." wsddn -i "$interface" -H "$hostname" --pid-file=/var/run/wsdd.pid >/dev/null & fi