Annotation of embedtools/etc/dwds_up.sh, revision 1.2
1.2 ! misho 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.1.2.1 2010/11/02 01:54:58 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>