[pkg-wpa-devel] Bug#618277: PHASE mismatch in ifupdown script
Kel Modderman
kel at otaku42.de
Tue Mar 15 11:46:31 UTC 2011
Hi Tormod,
On Monday 14 March 2011 08:06:31 Tormod Volden wrote:
> Package: wpasupplicant
> Version: 0.7.3-1
>
> Note that I don't use wpasupplicant so I can not test this, but I
> noticed it while studying various ifupdown script.
Can you explain what is actually wrong with the shell code I've been using for
a few years, which stops it from functioning as advertised?
I'm not going to be interested enough to consume time investigating a problem
based on a guess.
Thanks, Kel.
>
> The /etc/wpa_supplicant/ifupdown.sh is linked in /etc/network/if-up.d
> so it will be run with PHASE=up and not "post-up". However the script
> checks for "post-up". Same goes for "pre-down".
>
> --- /etc/wpa_supplicant/ifupdown.sh 2009-06-01 12:32:26.000000000 +0200
> +++ /tmp/ifupdown.sh 2011-03-13 23:01:35.000000000 +0100
> @@ -141,7 +141,7 @@ case "$MODE" in
> init_wpa_supplicant || exit 1
> conf_wpa_supplicant || { kill_wpa_supplicant; exit 1; }
> ;;
> - post-up)
> + up)
> init_wpa_cli || { kill_wpa_supplicant; exit 1; }
> ;;
> esac
> @@ -150,7 +150,7 @@ case "$MODE" in
> stop)
> do_stop
> case "$PHASE" in
> - pre-down)
> + down)
> kill_wpa_cli
> ;;
> post-down)
>
>
>
>
More information about the Pkg-wpa-devel
mailing list