Package: ifupdown
Version: 0.6.8
Severity: wishlist

Hi, 

ifupdown runs the scripts in the four directories 
/etc/network/if(up|pre-up|down|post-down).d/

Pretty good. I'd like to propose another one, 
/etc/pre-config.d  

which is run before the interface mapping (mapping command) is done.
Maybe a /etc/post-config.d  as well.

Reason:

I am using wpasupplicant and ifguessnet. There's a chicken-and-egg problem.

wpasupplicant is not to be run permanently, since it consumes CPU and
battery power. It furthermore requires to be run with different
configuration files. Therefore wpasupplicant is usually started in the
if-pre-up command (e.g. with the wpa_conf command). This means that
wpasupplicant is to be started *after* the mapping of the
interface. Since it is wpasupplicant's task to select one of possibly
several available SSID networks, the mapping cannot depend on the
results of wpasupplicant. 

On the other hand, ifguessnet supports that mapping based on the
chosen SSID, which implies that wpasupplicant has done it's work
before the mapping.


A solution would be to write a mapping script which first starts 
wpasupplicant, waits for some time, and then execs ifguessnet, but I'd
consider this as a hack.

A solution would be to have scripts run before mapping (where things
like wpasupplicant could be started). 

regards
Hadmut
 



-- System Information:
Debian Release: 4.0
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.17-2-k7
Locale: LANG=de_DE, LC_CTYPE=de_DE (charmap=ISO-8859-1)

Versions of packages ifupdown depends on:
ii  debconf [debconf-2.0]        1.5.8       Debian configuration management sy
ii  libc6                        2.3.6.ds1-7 GNU C Library: Shared libraries
ii  lsb-base                     3.1-17      Linux Standard Base 3.1 init scrip
ii  net-tools                    1.60-17     The NET-3 networking toolkit

ifupdown recommends no packages.

-- debconf information excluded


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to