From 05fee41ad27f3c2f6f214b8caa2f48c2f0f7aab5 Mon Sep 17 00:00:00 2001 From: Kroese Date: Sun, 20 Oct 2024 16:02:24 +0200 Subject: [PATCH] Update samba.sh --- src/samba.sh | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/src/samba.sh b/src/samba.sh index 9f1a1ce..3137d05 100644 --- a/src/samba.sh +++ b/src/samba.sh @@ -94,17 +94,8 @@ if ! smbd; then smbd -i --debug-stdout || true fi -legacy="" - -if [ -f "$STORAGE/windows.old" ]; then - # TODO - MT=$(<"$STORAGE/windows.old") - [[ "${MT,,}" == "pc-q35-2"* ]] && legacy="y" - [[ "${MT,,}" == "pc-i440fx-2"* ]] && legacy="y" -fi - -if [ -n "$legacy" ]; then - # Enable NetBIOS on Windows XP and lower +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