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

1.2       misho       1: #!/bin/sh
                      2: 
                      3: IFACE="wlan0"
                      4: WIFIDEV="ath0"
1.3     ! 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.3     ! misho      21: OPTS=""
1.2       misho      22: IP="172.31.1.1/30"
1.3     ! misho      23: IP6=""
1.2       misho      24: 
                     25: [ -r /etc/rc.wifi ] && . /etc/rc.wifi
                     26: 
1.3     ! misho      27: [ -z "$IFACE" -o -z "$WIFIDEV" ] && exit
        !            28: 
1.2       misho      29: echo "Config wireless AP (WEP) interface $IFACE ..."
                     30: 
1.3     ! misho      31: ifconfig $IFACE create wlandev $WIFIDEV $CLONEOPTS wlanmode hostap || exit
        !            32: if [ -n "$REGDOMAIN" ]; then
        !            33:        ifconfig $IFACE regdomain $REGDOMAIN
        !            34: fi
        !            35: if [ -n "$COUNTRY" ]; then
        !            36:        ifconfig $IFACE country $COUNTRY
        !            37: fi
        !            38: if [ -n "$WIFIOPTS" ]; then
        !            39:        ifconfig $IFACE $WIFIOPTS
        !            40: fi
        !            41: if [ -n "$BINT" ]; then
        !            42:        ifconfig $IFACE bintval $BINT
        !            43: fi
        !            44: if [ -n "$CHAN" ]; then
        !            45:        ifconfig $IFACE channel $CHAN
        !            46: fi
        !            47: if [ -n "$SSID" ]; then
        !            48:        ifconfig $IFACE ssid $SSID
        !            49: fi
        !            50: setWEP $IFACE $DEFTXKEY "$KEY_1" "$KEY_2" "$KEY_3" "$KEY_4"
        !            51: if [ -n "$IP" ]; then
        !            52:        ifconfig $IFACE inet $IP
        !            53: fi
        !            54: if [ -n "$IP6" ]; then
        !            55:        ifconfig $IFACE inet6 $IP6
        !            56: fi
        !            57: ifconfig $IFACE $OPTS up
1.2       misho      58: 
                     59: [ -x /etc/sysctl.$IFACE ] && /etc/sysctl.$IFACE
                     60: 
                     61: [ -x /etc/wifi_up.sh ] && /etc/wifi_up.sh $IFACE >/dev/null 2>&1 &
                     62: 
                     63: #wlandebug -i $IFACE state+scan+assoc+crypto+11n

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