mirror of
https://github.com/samba-team/samba.git
synced 2024-12-28 07:21:54 +03:00
d6ffe900c9
Andrew Bartlett
(This used to be commit 56a881b2b4
)
20 lines
356 B
Plaintext
20 lines
356 B
Plaintext
. basicsmb.fns
|
|
test_sharelist() {
|
|
echo $prefix/bin/smbclient -U$whoami% -L localhost
|
|
$prefix/bin/smbclient -U$whoami% -L localhost
|
|
status=$?
|
|
if [ $status = 0 ]; then
|
|
echo "smbd listed shares OK"
|
|
else
|
|
echo "listing shares with smbd failed with status $status"
|
|
return 1
|
|
fi
|
|
return 0
|
|
}
|
|
|
|
(test_smb_conf_setup) || exit 1
|
|
|
|
test_sharelist || exit 1
|
|
|
|
|