3
# Copyright (C) 2006 Debian/Ubuntu wpasupplicant Maintainers
4
# <pkg-wpa-devel@lists.alioth.debian.org>
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.
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.
16
# On Debian GNU/Linux systems, the text of the GPL license can be
17
# found in /usr/share/common-licenses/GPL.
19
if [ -n "$IF_WPA_ROAM_MAINT_DEBUG" ]; then
23
if [ -z "$1" ] || [ -z "$2" ]; then
24
echo "Usage: $0 IFACE ACTION"
30
# [CONNECTED|DISCONNECTED|stop|reload|check]
33
if [ -f /etc/wpa_supplicant/functions.sh ]; then
34
. /etc/wpa_supplicant/functions.sh
42
wpa_hysteresis_check || exit 1
45
if ifupdown_check; then
54
wpa_hysteresis_check || exit 1
57
if ifupdown_check; then
64
test_wpa_supplicant || exit 1
66
if ifupdown_check; then
75
test_wpa_supplicant || exit 1
82
test_wpa_supplicant || exit 1
83
test_wpa_cli || exit 1
87
echo "Unknown action: \"$WPA_ACTION\""