Skip to content

Commit

Permalink
fix: extend search for smbd
Browse files Browse the repository at this point in the history
  • Loading branch information
philclifford committed Aug 4, 2024
1 parent a13d554 commit 7668b1d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion quickemu
Original file line number Diff line number Diff line change
Expand Up @@ -1086,7 +1086,9 @@ function configure_file_sharing() {
fi

# SMB
if [ -x "$(command -v smbd)" ]; then
# We need to search in NixOS compatible paths as well as the standard location
# since /usr/sbin/smbd may not be in the PATH.
if [ -x "$(command -v smbd)" ] || [ -x "/usr/sbin/smbd" ]; then
NET+=",smb=${PUBLIC}"
echo " - smbd: On guest: smb://10.0.2.4/qemu"
fi
Expand Down

0 comments on commit 7668b1d

Please sign in to comment.