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