You could easily setup a cron job to do what you want, but if you only need the samba mount while you are working on something a shell script might be sufficient:
Code:
while ! mount sambamount; do sleep 5; done;
or
Code:
while :; do if ping <host>; then mount sambamount; fi; done
Experiment a little, and pick what suites your needs.
Regards,
Alunduil