Annotation of elwix/config/etc/default/rc.d/011.ap_tsn.stop, revision 1.3

1.1       misho       1: #!/bin/sh
                      2: 
                      3: IFACE="wlan0"
                      4: WIFIDEV="ath0"
                      5: 
                      6: REGDOMAIN=""
                      7: COUNTRY=""
                      8: 
                      9: SSID="tsn-ap"
                     10: CHAN="36:a"
1.2       misho      11: BINT="100"
                     12: WIFIOPTS="tsn -bgscan"
1.1       misho      13: 
                     14: WPAPASS="tsn_go"
                     15: WEPKEY="0123456789"
                     16: 
                     17: OPT=""
                     18: IP="172.31.1.1/30"
                     19: 
                     20: [ -r /etc/rc.wifi ] && . /etc/rc.wifi
                     21: 
1.2       misho      22: echo "Config wireless AP (TSN) interface $IFACE ..."
                     23: 
                     24: ifconfig $IFACE create wlandev $WIFIDEV wlanmode hostap
                     25: #ifconfig $IFACE regdomain $REGDOMAIN
                     26: #ifconfig $IFACE country $COUNTRY
                     27: ifconfig $IFACE $WIFIOPTS
                     28: ifconfig $IFACE bintval $BINT
                     29: ifconfig $IFACE channel $CHAN
1.1       misho      30: 
1.3     ! misho      31: mkhostconf $IFACE tsn "$WPAPASS" $WEPKEY
1.1       misho      32: 
                     33: ifconfig $IFACE ssid $SSID
                     34: ifconfig $IFACE inet ${IP} ${OPT} up
                     35: 
                     36: [ -x /etc/sysctl.$IFACE ] && /etc/sysctl.$IFACE
                     37: 
                     38: [ -x /etc/wifi_up.sh ] && /etc/wifi_up.sh $IFACE >/dev/null 2>&1 &
                     39: 
                     40: [ -r /var/tmp/hostapd_$IFACE.conf ] && hostapd -B -K -P /var/run/hostapd_$IFACE.pid /var/tmp/hostapd_$IFACE.conf
                     41: 
                     42: #wlandebug -i $IFACE state+scan+assoc+crypto+11n

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