]> CyberLeo.Net >> Repos - FreeBSD/releng/8.1.git/blob - tools/tools/net80211/scripts/setup.tdma-master
Copy stable/8 to releng/8.1 in preparation for 8.1-RC1.
[FreeBSD/releng/8.1.git] / tools / tools / net80211 / scripts / setup.tdma-master
1 #! /bin/sh
2 #
3 # Setup a TDMA master and bridge it to a wired NIC.
4 #
5 # $FreeBSD$
6 #
7 PATH=.:$PATH
8 . config
9
10 SSID='freebsd+tdma'
11
12 WLAN=`ifconfig wlan create wlanmode tdma wlandev $WIRELESS`
13 ifconfig $WLAN ssid "$SSID" tdmaslot 0 channel $CHANNEL
14 wlandebug -i $WLAN state+scan+tdma
15
16 BRIDGE=`ifconfig bridge create`
17 ifconfig $BRIDGE addm $WLAN addm $WIRED 192.168.2.1/24
18
19 ifconfig $WIRED up
20 ifconfig $WLAN up