#!/bin/sh
IFACE="wlan0"
WIFIDEV="ath0"
REGDOMAIN=""
COUNTRY=""
SSID="relay-dwds"
CHAN="36:a"
BINT="100"
WIFIOPTS="-apbridge -bgscan"
OPT=""
IP="172.31.1.1/30"
echo "Config wirelss DWDS (Relay) interface $IFACE ..."
if [ ! -x /etc/rc.S/011.dwds_cli.run ]; then
echo "Error:: Can't start DWDS (Relay), because DWDS (Client) not configured!"
exit 1
else
/etc/rc.S/011.dwds_cli.run
fi
ifconfig $IFACE create wlandev $WIFIDEV wlanmode hostap
#ifconfig $IFACE regdomain $REGDOMAIN
#ifconfig $IFACE country $COUNTRY
ifconfig $IFACE $WIFIOPTS
ifconfig $IFACE bintval $BINT
ifconfig $IFACE channel $CHAN
ifconfig $IFACE ssid $SSID
ifconfig $IFACE inet ${IP} ${OPT} up
[ -x /etc/sysctl.$IFACE ] && /etc/sysctl.$IFACE
[ -x /etc/wifi_up.sh ] && /etc/wifi_up.sh $IFACE >/dev/null 2>&1 &
#wlandebug -i $IFACE state+scan+assoc+auth+wds+11n
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>