Annotation of elwix/config/etc/uboot/rc.d/011.ap_wep.stop, revision 1.2.2.1

1.2       misho       1: #!/bin/sh
                      2: 
                      3: IFACE="wlan0"
                      4: WIFIDEV="ath0"
1.2.2.1 ! misho       5: CLONEOPTS=""
1.2       misho       6: 
                      7: REGDOMAIN=""
                      8: COUNTRY=""
                      9: 
                     10: DEFTXKEY="1"
                     11: KEY_1="public_key"
                     12: KEY_2=""
                     13: KEY_3=""
                     14: KEY_4=""
                     15: 
                     16: SSID="wep-ap"
                     17: CHAN="36:a"
                     18: BINT="100"
                     19: WIFIOPTS="-bgscan authmode shared"
                     20: 
1.2.2.1 ! misho      21: OPTS=""
1.2       misho      22: IP="172.31.1.1/30"
                     23: 
                     24: [ -r /etc/rc.wifi ] && . /etc/rc.wifi
                     25: 
1.2.2.1 ! misho      26: [ -z "$IFACE" -o -z "$WIFIDEV" ] && exit
1.2       misho      27: 
1.2.2.1 ! misho      28: echo "Config wireless AP (WEP) interface $IFACE ..."
1.2       misho      29: 
1.2.2.1 ! misho      30: ifconfig $IFACE create wlandev $WIFIDEV $CLONEOPTS wlanmode hostap || exit
        !            31: if [ -n "$REGDOMAIN" ]; then
        !            32:        ifconfig $IFACE regdomain $REGDOMAIN
        !            33: fi
        !            34: if [ -n "$COUNTRY" ]; then
        !            35:        ifconfig $IFACE country $COUNTRY
        !            36: fi
        !            37: if [ -n "$WIFIOPTS" ]; then
        !            38:        ifconfig $IFACE $WIFIOPTS
        !            39: fi
        !            40: if [ -n "$BINT" ]; then
        !            41:        ifconfig $IFACE bintval $BINT
        !            42: fi
        !            43: if [ -n "$CHAN" ]; then
        !            44:        ifconfig $IFACE channel $CHAN
        !            45: fi
        !            46: if [ -n "$SSID" ]; then
        !            47:        ifconfig $IFACE ssid $SSID
        !            48: fi
        !            49: if [ -n "$IP" ]; then
        !            50:        ifconfig $IFACE inet $IP
        !            51: fi
        !            52: setWEP $IFACE $DEFTXKEY "$KEY_1" "$KEY_2" "$KEY_3" "$KEY_4"
        !            53: ifconfig $IFACE $OPTS up
1.2       misho      54: 
                     55: [ -x /etc/sysctl.$IFACE ] && /etc/sysctl.$IFACE
                     56: 
                     57: [ -x /etc/wifi_up.sh ] && /etc/wifi_up.sh $IFACE >/dev/null 2>&1 &
                     58: 
                     59: #wlandebug -i $IFACE state+scan+assoc+crypto+11n

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