That's how I do it. I know that Slackware has a rc.wireless startup script, but I don't use it. The first thing I do when I log in at home is 'sudo ./home-wireless'. When I'm not at home, I run the appropriate script. It saves me a lot of trouble of re-modifying configuration files whenever I change networks.