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.



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to