What does it take to automount a share when you connect to a particular wifi network?

I am using OZ3.2 on an SL5500 with a D-link 660

I tried modifying /etc/pcmcia/wireless. It appears to fire correctly when I insert my card, and I can filter mounts by SSID, but the smbmount command will not work within this script. I verified the IF loop is working by touching a file. I'm not seeing any error messages. I also tried using the full path to smbmount. The same line works correctly from the command line, so I'm not certain why it doesn't work within the script.

The only possibility I can think of is a timing issue... perhaps the wireless isn't ready to use by the time smbmount tries to run? I don't know, but any suggestions would be appriciated.