workaround for mac os x lost wifi connection
Update from 10.4 to 10.5 introduced a pain. After sleep and wake up, Mac losts connection to the wireless network. To reconnect, I have to specify SID and the WEP key manually. I hate it.
As a temporary solution, I found how to re-connect from a command line, thanks to the blog article ``airport - the Little Known Command Line Wireless Utility''. I've created the file reconnect.sh and run it when required:
sudo airport -ASID --password='$WEP_key'