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