In another thread,
Might this change to lines 62-69 of... One is a bug in network-shares-automount which does not handle null passwords. ...
/mod/sbin/scanmounts
fix the issue?
Code:
if [ $type = "smb" ]; then
# keep the [user|password etc]=... as they go into mount in that format
user=$(ls -1 "$name" | grep -e "^user=")
password=$(ls -1 "$name" | grep -e "^password=")
domain=$(ls -1 "$name" | grep -e "^domain=")
unc="unc=\\\\$host\\$(echo $folder | sed 's^/^\\\\^g')"
auth=$user
[ -n "${password#password=}" ] &&
auth=${auth:+${auth},}${password}
[ -n "$auth" ] &&
auth=$auth,
echo "mount -t cifs \"//$host/$folder\" \"/media/$name\" -o $auth$domain,$unc"
mount -t cifs "//$host/$folder" "/media/$name" -o "$auth$domain,$unc"
elif [ $type = "nfs" ]; then
Last edited: