+# Similar tests for OSX
+if [ "${Uname}" = "darwin" ]; then
+ smbutil view -A "//${Workgroup};${Username}:${Password}@${PrintServer}" > /dev/null 2>&1
+ if [ $? -ne 0 ]; then
+ printerror "User name or password incorrect, or no contact with the print server ${PrintServer}."
+ exit 1
+ fi
+ ShareFound=$(smbutil view "//${Workgroup};${Username}:${Password}@${PrintServer}" 2>/dev/null | grep ${PrintShare} | cut -d " " -f 1)
+ if [ "${ShareFound}" != "${PrintShare}" ]; then
+ printerror "Could not find printer share called ${PrintShare} on the server"
+ printerror "This script must be broken or outdated. Please contact orakel@ntnu.no for further assistance."
+ exit 1
+ fi
+fi
+