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