File:  [ELWIX - Embedded LightWeight unIX -] / elwix / config / etc / uboot / dwds_up.sh
Revision 1.1.2.1: download - view: text, annotated - select for diffs - revision graph
Thu Jan 23 09:30:22 2014 UTC (10 years, 5 months ago) by misho
Branches: elwix2_2
add files

#!/bin/sh
#
# Sample up script for DWDS bridge
#  Syntax: dwds_up.sh <wlanX> <BSSID> [dwds_name]
#
# $Id: dwds_up.sh,v 1.1.2.1 2014/01/23 09:30:22 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>