iwconfig ath0 key XXXXXXXXXXXXXXXXXXXXXXXXXX (the X's representing the key)
Put that line in a separate script, owned by root and chmod the script:
chmod 700 yourscript
Then only root can read it.
Call the hidden script from your startup script. This should work because the startup scripts have root access.
See iwconfig(8) for more info.
Last edited by sgrayban; 12-23-2004 at 03:24 AM.
|