[pkg-wpa-devel] How my upgrade worked

Felix Homann fexpop at onlinehome.de
Sun Apr 9 12:05:45 UTC 2006


Hi again,

I've written up the steps I had to perform to upgrade my setup to the new 
style. Feel free to use it as a basis for documentation:

Replacing simple wpa_supplicant + ifplugd configuration
=======================================================

If you have been using a simple setup consisting of 

1. a /etc/wpa_supplicant.conf without any action scripts
2. ifplugd bringing up the interface whenever wpa_supplicant connects
to an access point
3. all networks provide a DHCP server

you can convert to the new style like this (as root):

1. On upgrading wpasupplicant a backup of your
/etc/wpa_supplicant.conf has been written to
/etc/wpa_supplicant.conf.dpkg-bak. Copy this file 
to /etc/wpa_supplicant/wpa_supplicant.conf: 

  cp /etc/wpa_supplicant.conf.dpkg-bak \ 
  /etc/wpa_supplicant.conf/wpa_supplicant.conf

2. Copy the example action script wpacli-action-dhclient to
/etc/wpa_supplicant/ and make it executable:

  cp /usr/share/doc/wpasupplicant/examples/wpacli-action-dhclient \
  /etc/wpa_supplicant/roaming.script

  chmod +x /etc/wpa_supplicant/roaming.script

3. Alter /etc/network/interfaces.

auto lo wlan # if you want to bring the interface up automatically 
	     # change wlan to the name of your interface 

iface wlan inet manual # change wlan to the name of your interface
        wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
        wpa-action-timeout -1 # This might be useful if
			      # you want to automatically
			      # bring the interface up on boot
        wpa-action /etc/wpa_supplicant/roaming.script

4. Make sure to remove your wireless interface from the list of
interfaces watched by ifplugd:

	   dpkg-reconfigure ifplugd

5. start the interface: 

   ifup wlan

You should also disable zeroconf on your wireless interface, even as
fallback.  
 




More information about the Pkg-wpa-devel mailing list