#!/bin/sh
# $Id: ifdown-wlan0,v 1.1.1.1 2006/06/02 18:38:29 bsd3 Exp $

# make the wlan0 interface down
ifdown wlan0

# remove all the stale RTL modules
rmmod rtl818x >/dev/null 2>&1
rmmod ieee80211-rtl >/dev/null 2>&1
rmmod ieee80211_crypt_ccmp-rtl >/dev/null 2>&1
rmmod ieee80211_crypt_tkip-rtl >/dev/null 2>&1
rmmod ieee80211_crypt_wep-rtl >/dev/null 2>&1
rmmod ieee80211_crypt-rtl >/dev/null 2>&1

# that's all :)
