File:
[ELWIX - Embedded LightWeight unIX -] /
embedtools /
etc /
dwds_up.sh
Revision
1.2:
download - view:
text,
annotated -
select for diffs -
revision graph
Wed Jun 8 12:45:40 2011 UTC (13 years, 7 months ago) by
misho
Branches:
MAIN
CVS tags:
tools3_0,
tools2_9,
tools2_8,
tools2_7,
tools2_6,
tools2_5,
tools2_4,
tools2_3,
tools2_2,
tools2_1,
tools2_0,
tools1_2,
tools1_1,
TOOLS2_9,
TOOLS2_8,
TOOLS2_7,
TOOLS2_6,
TOOLS2_5,
TOOLS2_4,
TOOLS2_3,
TOOLS2_2,
TOOLS2_1,
TOOLS2_0,
TOOLS1_2,
TOOLS1_1,
TOOLS1_0,
HEAD
new ver
#!/bin/sh
#
# Sample up script for DWDS bridge
# Syntax: dwds_up.sh <wlanX> <BSSID> [dwds_name]
#
# $Id: dwds_up.sh,v 1.2 2011/06/08 12:45:40 misho Exp $
#
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 ... $?"
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>