version 1.1, 2010/11/02 01:54:58
|
version 1.1.2.1, 2010/11/02 01:54:58
|
Line 0
|
Line 1
|
|
#!/bin/sh |
|
# |
|
# Sample down script for DWDS bridge |
|
# Syntax: dwds_dn.sh <wlanX> <BSSID> [dwds_name] |
|
# |
|
# $Id$ |
|
# |
|
|
|
BRIDGE="bridge0" |
|
|
|
if [ -z $1 ]; then |
|
echo "Not enough parameters ..." |
|
echo " dwds_dn.sh <wlanX> <BSSID> [dwds_name]" |
|
exit 1 |
|
fi |
|
if [ -z $2 ]; then |
|
echo "Not enough parameters ..." |
|
echo " dwds_dn.sh <wlanX> <BSSID> [dwds_name]" |
|
exit 1 |
|
fi |
|
|
|
ifconfig $BRIDGE deletem $1 |
|
ifconfig $1 down |
|
logger -p user.debug -t "${3:-dwds}" "DWDS_DN $1 $2 $3 ... $?" |