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, 2 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
1: #!/bin/sh
2: #
3: # Sample up script for DWDS bridge
4: # Syntax: dwds_up.sh <wlanX> <BSSID> [dwds_name]
5: #
6: # $Id: dwds_up.sh,v 1.2 2011/06/08 12:45:40 misho Exp $
7: #
8:
9: BRIDGE="bridge0"
10:
11: if [ -z $1 ]; then
12: echo "Not enough parameters ..."
13: echo " dwds_up.sh <wlanX> <BSSID> [dwds_name]"
14: exit 1
15: fi
16: if [ -z $2 ]; then
17: echo "Not enough parameters ..."
18: echo " dwds_up.sh <wlanX> <BSSID> [dwds_name]"
19: exit 1
20: fi
21:
22: ifconfig $1 up
23: ifconfig $BRIDGE addm $1
24: ifconfig $BRIDGE stp $1
25: logger -p user.debug -t "${3:-dwds}" "DWDS_UP $1 $2 $3 ... $?"
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>