From 6eeb3db45c5b3c1c191ad3fc53d6321dce1bcfa0 Mon Sep 17 00:00:00 2001 From: Phil Clifford Date: Mon, 16 Oct 2023 11:36:31 +0100 Subject: [PATCH] Improve test for presence of smbd (#754) Will now work with nix / nixOS Co-authored-by: omernaveedxyz --- quickemu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quickemu b/quickemu index 4f3ef1b..69c0c25 100755 --- a/quickemu +++ b/quickemu @@ -886,7 +886,7 @@ function vm_boot() { fi # If smbd is available and ~/Public is present export it to the guest via samba - if [[ -e "/usr/sbin/smbd" && -n ${PUBLIC} ]]; then + if [[ -x "$(command -v smbd)" && -n ${PUBLIC} ]]; then NET="${NET},smb=${PUBLIC}" echo " - smbd: On guest: smb://10.0.2.4/qemu" fi