1#! /bin/sh 2# 3# Setup a TDMA master and bridge it to a wired NIC. 4# 5# $FreeBSD$ 6# 7PATH=.:$PATH 8. config 9 10SSID='freebsd+tdma' 11 12WLAN=`ifconfig wlan create wlanmode tdma wlandev $WIRELESS` 13ifconfig $WLAN ssid "$SSID" tdmaslot 0 channel $CHANNEL 14wlandebug -i $WLAN state+scan+tdma 15 16BRIDGE=`ifconfig bridge create` 17ifconfig $BRIDGE addm $WLAN addm $WIRED 192.168.2.1/24 18 19ifconfig $WIRED up 20ifconfig $WLAN up 21