1. basicsmb.fns 2test_sharelist() { 3 echo $prefix/bin/smbclient -U$whoami% -L localhost 4 $prefix/bin/smbclient -U$whoami% -L localhost 5 status=$? 6 if [ $status = 0 ]; then 7 echo "smbd listed shares OK" 8 else 9 echo "listing shares with smbd failed with status $status" 10 return 1 11 fi 12 return 0 13} 14 15# Need guest account 16password=samba 17security=USER 18(test_smb_conf_setup && test_smbpasswd $password ) || exit 1 19 20test_sharelist || exit 1 21 22 23