Wipy is a small script done in Python that allows you to retrieve the current wireless configuration and restore it, including the wifi hardware switch status.
Right now I use it for storing the wireless settings before suspending my laptop, then call if again after wake up to restore settings. I run the script from the hibernate or suspend-to-RAM scrips.
Currently it works only for acerhk driver controlled hardware switch. Also, it only works for ipw2100 (Centrino) wireless device, because it uses the files in /sys folder to retrieve the hardware switch status.
wipy - Wifi configuration manager
Copyright (C) 2005 Alvaro J. Iradier Muro
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
The program is quite simple and there are no versions released yet. You can download wipy.py from the CVS repository
Use:
wipy.py -s
to store the current wireless settings to a temporary file.
Use:
wipy.py -r
to recover the stored settings and apply them.
Use:
wipy.py -c
to create a profile with the current settings.
Use:
wipy.py profile_name
to load a previously stored profile
Edit the first lines in wipy.py to configure device name and paths.
Alvaro J. Iradier Muro
airadier at users.sourceforge.net