[pkg-wpa-devel] Bug#618277: PHASE mismatch in ifupdown script

Kel Modderman kel at otaku42.de
Thu Mar 17 11:57:05 UTC 2011


On Wednesday 16 March 2011 22:19:02 Tormod Volden wrote:
> I agree that nowadays this is usually run through dbus and
> network-manager and not the ifupdown and /etc/interfaces way, but the
> result is the same. Please look at
> /etc/NetworkManager/dispatcher.d/01ifupdown - it sets $PHASE and does
> run-parts on the corresponding /etc/network/if-XXX.d directory.
> 
> So in your example above, when "run-parts: executing
> /etc/network/if-down.d/wpasupplicant" is executed, $PHASE is set to
> "down". And the "pre-down" clause can not be executed since there is
> no if-pre-down.d file.

Incorrect. Add a debug print to the case statement (eg echo "$0 $MODE $PHASE")

run-parts: executing /etc/network/if-down.d/wpasupplicant                                                                                                                                 
/etc/network/if-down.d/wpasupplicant stop pre-down

> 
> You do agree that any post-up and pre-down clauses in ifupdown.sh will
> not be run, right? 

No, I do not agree.

Kel.





More information about the Pkg-wpa-devel mailing list