]> CyberLeo.Net >> Repos - FreeBSD/releng/9.2.git/blob - tools/tools/net80211/scripts/setup.tdma-master
- Copy stable/9 to releng/9.2 as part of the 9.2-RELEASE cycle.
[FreeBSD/releng/9.2.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