version 1.1, 2010/11/02 01:54:58
|
version 1.2, 2011/06/08 12:45:40
|
Line 0
|
Line 1
|
|
#!/bin/sh |
|
# |
|
# Sample up script for DWDS bridge |
|
# Syntax: dwds_up.sh <wlanX> <BSSID> [dwds_name] |
|
# |
|
# $Id$ |
|
# |
|
|
|
BRIDGE="bridge0" |
|
|
|
if [ -z $1 ]; then |
|
echo "Not enough parameters ..." |
|
echo " dwds_up.sh <wlanX> <BSSID> [dwds_name]" |
|
exit 1 |
|
fi |
|
if [ -z $2 ]; then |
|
echo "Not enough parameters ..." |
|
echo " dwds_up.sh <wlanX> <BSSID> [dwds_name]" |
|
exit 1 |
|
fi |
|
|
|
ifconfig $1 up |
|
ifconfig $BRIDGE addm $1 |
|
ifconfig $BRIDGE stp $1 |
|
logger -p user.debug -t "${3:-dwds}" "DWDS_UP $1 $2 $3 ... $?" |