#!/bin/sh # ipw3945_down # Make down the Intel Corporation PRO/Wireless 3945ABG Network Connection # Last modify: 03/06/2007 # by spina # This file may be distributed and/or modified under the terms of the # GNU General Public License version 2 as published by the Free Software # Foundation # # This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE # WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. # # Visit http://www.gnu.org/copyleft/gpl.html for GPL licensing information. function error() { echo "ERROR: $@"; exit 1; } [ `id -u` -gt 0 ] && error "Only root can do it!"; ! which ipw3945d >& /dev/null && error "ipw3945d - command not found"; ! ipw3945d --isrunning && exit 0; ipw3945d --kill; sleep 1; ipw3945d --isrunning && error "ipwd3945d not halted"; modprobe -r ipw3945 ieee80211{,_crypt{_{tkip,ccmp,wep},}}; exit 0;