~ubuntu-branches/ubuntu/quantal/wpa/quantal-201207091727

« back to all changes in this revision

Viewing changes to debian/ifupdown/wpa_action

  • Committer: Package Import Robot
  • Author(s): Kel Modderman, Stefan Lippers-Hollmann, Kel Modderman
  • Date: 2012-04-21 15:59:32 UTC
  • Revision ID: package-import@ubuntu.com-20120421155932-dti0mkayrinzxmpl
Tags: 1.0~rc3-1
[ Stefan Lippers-Hollmann ]
* import new upstream snapshot 1.0-rc3:
  - fixes:
    - hostapd: Fails to authenticate on wpa2 password (Closes: #483924)
    - hostapd: EAPOL reauthentication/rekeying timeout loop when using WMM
      (Closes: #655129, #659059)
  - rebase patches:
    - libnl3-includes
  - update hostapd configs.
  - update wpa_supplicant configs.
* merge source packages for hostapd and wpasupplicant under the new name
  "wpa", which is also used by upstream.
* restrict wpasupplicant to linux-any and kfreebsd-any, hurd lacks kernel
  support.
* bump standards version to 3.9.3, no changes necessary.
* update dep-5 version to final 1.0, no changes necessary:
  - order licenses alphabetically.
* build-depend on docbook-to-man explicitly.
* convert packaging to Multi-Arch, bump compat level to 9 and debhelper
  build-dependency accordingly; all binaries are Multi-Arch=foreign.
* update debian/copyright for wpa 1.0~rc2 and merged sources.
* fix clean target and make sure to succeed building twice in a row.
* drop build-dependency on libreadline-dev, it's no longer needed with
  WPA_CLI_EDIT.
* remove watch file, there is no corresponding upstream tarballs at the
  moment.
* add (temporary?) get-orig-source target to debian/rules, which fetches the
  last tagged upstream version corresponding to debian/changelog.
  - add a lintian override for this, upstream doesn't want to release
    tarballs at the moment.
* use epoche only for hostapd binaries.

[ Kel Modderman ]
* export BINDIR=/sbin, the build system now requires it when patching
  D-Bus/systemd configuration.
* quieten the upstream build system so that errors/warning are more visible.
* assist with adaptation of debian/rules for merge of wpa_supplicant/hostapd:
  - add docbook-utils to build dependency list and make documentation from
    sgml source
  - ensure shared code under src/ is cleaned between wpa_supplicant/hostapd
    builds
  - put wpa_supplicant/hostapd ifupdown hooks in their own namespace, adapt
    installation of ifupdown hooks
* drop the netdev_wrapper script from wpagui and associated patch
* install systemd service unit file
* refresh D-Bus service activation file patch which starts process with
  syslog and control socket support, also patch systemd service file
* drop 09_dbus_emit_change_events.patch, applied upstream.
* fix ftbfs with gcc/g++ 4.7 (Closes: 667416)
* unfortunately, hostapd package historically added an epoch, so an epoch
  must now be added to this source package too.
* enable hardened build flags. (Closes: #657332)
* remove DEB_BUILD_OPTIONS=noopt handling from debian/rules, no longer
  required since dpkg-buildflags honors it.
* Add ability to set CC for cross building support (untested).
* Remove Faidon Liambotis <paravoid@debian.org> from Uploaders as per
  his request, many thanks for all past efforts Faidon.
* Only build manpages from docbook source, we do not currently use the
  html or pdf products.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
# Copyright (C) 2006 - 2009 Debian/Ubuntu wpasupplicant Maintainers 
 
4
# <pkg-wpa-devel@lists.alioth.debian.org>
 
5
#
 
6
# This program is free software; you can redistribute it and/or
 
7
# modify it under the terms of the GNU General Public License
 
8
# as published by the Free Software Foundation; either version 2
 
9
# of the License, or (at your option) any later version.
 
10
#
 
11
# This program is distributed in the hope that it will be useful,
 
12
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
14
# GNU General Public License for more details.
 
15
#
 
16
# On Debian GNU/Linux systems, the text of the GPL license,
 
17
# version 2, can be found in /usr/share/common-licenses/GPL-2.
 
18
 
 
19
if [ -n "$IF_WPA_ROAM_MAINT_DEBUG" ]; then
 
20
        set -x
 
21
fi
 
22
 
 
23
if [ -z "$1" ] || [ -z "$2" ]; then
 
24
        echo "Usage: $0 IFACE ACTION"
 
25
        exit 1
 
26
fi
 
27
 
 
28
# network interface
 
29
WPA_IFACE="$1"
 
30
# [CONNECTED|DISCONNECTED|stop|reload|check]
 
31
WPA_ACTION="$2"
 
32
 
 
33
if [ -f /etc/wpa_supplicant/functions.sh ]; then
 
34
        . /etc/wpa_supplicant/functions.sh
 
35
else
 
36
        exit 0
 
37
fi
 
38
 
 
39
case "$WPA_ACTION" in
 
40
        "CONNECTED")
 
41
                wpa_log_env
 
42
                wpa_hysteresis_check || exit 1
 
43
                wpa_hysteresis_event
 
44
                if ifup; then
 
45
                        wpa_cli status | wpa_msg log
 
46
                else
 
47
                        wpa_cli status | wpa_msg log
 
48
                        wpa_cli reassociate
 
49
                fi
 
50
                ;;
 
51
 
 
52
        "DISCONNECTED")
 
53
                wpa_log_env
 
54
                wpa_hysteresis_check || exit 1
 
55
                ifdown
 
56
                if_post_down_up
 
57
                ;;
 
58
 
 
59
        "stop"|"down")
 
60
                test_wpa_cli && kill_wpa_cli
 
61
                ifdown
 
62
                test_wpa_supplicant && kill_wpa_supplicant
 
63
                ;;
 
64
 
 
65
        "restart"|"reload")
 
66
                test_wpa_supplicant || exit 1
 
67
                reload_wpa_supplicant
 
68
                ;;
 
69
        
 
70
        "check")
 
71
                test_wpa_supplicant || exit 1
 
72
                test_wpa_cli || exit 1
 
73
                ;;
 
74
 
 
75
        *)
 
76
                echo "Unknown action: \"$WPA_ACTION\""
 
77
                exit 1
 
78
                ;;
 
79
esac
 
80
 
 
81
exit 0