File:  [ELWIX - Embedded LightWeight unIX -] / elwix / config / etc / default / rc.d / 011.ap_multi.stop
Revision 1.2.16.1: download - view: text, annotated - select for diffs - revision graph
Fri Jan 24 10:14:01 2014 UTC (10 years, 5 months ago) by misho
Branches: elwix2_2
Diff to: branchpoint 1.2: preferred, unified
add optimizations

    1: #!/bin/sh
    2: 
    3: IFACE="wlan1"
    4: WIFIDEV="ath0"
    5: 
    6: REGDOMAIN=""
    7: COUNTRY=""
    8: 
    9: SSID="ap-multi"
   10: CHAN="149:a"
   11: BINT="100"
   12: WIFIOPTS="-bgscan"
   13: #WIFIOPTS="-bgscan -ampdutx -amsdu"
   14: 
   15: OPT=""
   16: IP="172.31.2.1/30"
   17: 
   18: echo "Config wireless AP interface $IFACE ..."
   19: 
   20: ifconfig $IFACE create wlandev $WIFIDEV wlanmode hostap
   21: #ifconfig $IFACE regdomain $REGDOMAIN
   22: #ifconfig $IFACE country $COUNTRY
   23: ifconfig $IFACE $WIFIOPTS
   24: ifconfig $IFACE bintval $BINT
   25: ifconfig $IFACE channel $CHAN
   26: 
   27: ifconfig $IFACE ssid $SSID
   28: ifconfig $IFACE inet ${IP} ${OPT} up
   29: 
   30: [ -x /etc/sysctl.$IFACE ] && /etc/sysctl.$IFACE
   31: 
   32: [ -x /etc/wifi_up.sh ] && /etc/wifi_up.sh $IFACE >/dev/null 2>&1 &
   33: 
   34: #wlandebug -i $IFACE state+scan+assoc+11n

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>