#!/bin/sh
#
# Wireless configuration script
# Copyright (c) 2006 Dirk Nehring <dnehring@freewrt.org>
#
[ "$IF_WIRELESS_TYPE" != "broadcom" ] && exit 0

wl mac none
wl radio off
wl down

pid="$(cat /var/run/nas.lan.pid 2>&-)"
[ -n "$pid" -a -d "/proc/$pid" ] && kill $pid

exit 0
