Here's what I'm trying to accomplish. I want my shares to mount to the specified locations asap when the network (wlan) gets connected with a specific macaddress. So if I for example am at the university lab I can connect to the samba shares at the univ. and when I'm home, I can connect to my networks shares withought the slightest move of my finger. (yeap, I'm getting pretty lazy when I'm needed to do repetitive tasks ).

Also, if connection is lost to that macaddress, I'd again like to run a umount script

I have written the extremely complicated mount and umount scripts (just plain smbmount and umount commands), so, is there any ready script to handle the connection thing?

Thanks in advance m8ts