3 # Debian ifupdown hook script for madwifi-ng
5 # Author: Matt Brown <matt@mattb.net.nz>
6 # Modified by: Kel Modderman <kelrin@tpg.com.au>
8 # Copyright (C) 2005 - 2006 Matt Brown
10 # This is free software; you can redistribute it and/or modify it under the
11 # terms of the GNU General Public License as published by the Free Software
12 # Foundation; either version 2 of the License, or (at your option) any later
15 # This is distributed in the hope that it will be useful, but WITHOUT ANY
16 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
17 # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
20 # On Debian GNU/Linux systems, the text of the GPL license can be found in
21 # /usr/share/common-licenses/GPL
23 WLANCONFIG=/sbin/wlanconfig
25 if [ ! -x "$WLANCONFIG" ]; then
29 if [ ! -n "$IF_MADWIFI_BASE" ]; then
33 if [ -n "$IF_MADWIFI_VAP" ]; then
40 $WLANCONFIG $VAP destroy