never mind, I've managed to make it work with the help of this discussion:
http://www.daemonforums.org/showthre...tname+wireless
I did not know you have to tell the script to bring up the network card, because you don't need that with ehternet.
And you need to put double quotes around the passphrase if you have extra characters
it is not specified in the manpages I guess because this should be some very basic unix knowledge...
stupid me