Annotation of embedtools/etc/dwds_dn.sh, revision 1.1.2.1
1.1.2.1 ! misho 1: #!/bin/sh
! 2: #
! 3: # Sample down script for DWDS bridge
! 4: # Syntax: dwds_dn.sh <wlanX> <BSSID> [dwds_name]
! 5: #
! 6: # $Id:$
! 7: #
! 8:
! 9: BRIDGE="bridge0"
! 10:
! 11: if [ -z $1 ]; then
! 12: echo "Not enough parameters ..."
! 13: echo " dwds_dn.sh <wlanX> <BSSID> [dwds_name]"
! 14: exit 1
! 15: fi
! 16: if [ -z $2 ]; then
! 17: echo "Not enough parameters ..."
! 18: echo " dwds_dn.sh <wlanX> <BSSID> [dwds_name]"
! 19: exit 1
! 20: fi
! 21:
! 22: ifconfig $BRIDGE deletem $1
! 23: ifconfig $1 down
! 24: logger -p user.debug -t "${3:-dwds}" "DWDS_DN $1 $2 $3 ... $?"
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>