I recommend using AutoFS for this kind of thing: http://images.apple.com/business/docs/Autofs.pdf
According to the script, it will only mount the directory if the desktop Home directory already exists. If the desktop Home directory doesn't exist, it will create it, but nothing more. You need to use "mkdir -p" to always attempt to create the directory. The "-p" flag will allow the program to be successful even if the directory already exists.
You should use $USER instead of that funky awk script. Same goes for $HOME for the home directory. Don't rely on bash either. Really, all you need is:
mkdir -p $HOME/Desktop/Home
mount -t smbfs //10.210.0.13/staff/$USER $HOME/Desktop/Home
But again, AutoFS would be far more elegant.
You don't have control over where it mounts the volume in this case, however.
Yea, but the volume mounted /Volumes/TheName should show up on the User's Desktop anyway, unless the Finder has been told to not put the volumes on the Desktop.
And a symlink could always put in the Desktop folder that points to /Volumes/TheName.
AutoFS would most likely still be better.