Annotation of elwix/config/etc/uboot/rc.d/011.dwds_relay.stop, revision 1.2.2.2

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: SSID="relay-dwds"
                     11: CHAN="36:a"
                     12: BINT="100"
                     13: WIFIOPTS="-apbridge -bgscan"
                     14: 
1.2.2.1   misho      15: OPTS=""
1.2       misho      16: IP="172.31.1.1/30"
1.2.2.2 ! misho      17: IP6=""
1.2       misho      18: 
1.2.2.1   misho      19: DWDS_CLI="/etc/rc.S/011.dwds_cli.run"
                     20: 
                     21: [ -z "$IFACE" -o -z "$WIFIDEV" ] && exit
                     22: 
1.2       misho      23: echo "Config wirelss DWDS (Relay) interface $IFACE ..."
                     24: 
1.2.2.1   misho      25: if [ ! -x "$DWDS_CLI" ]; then
1.2       misho      26:        echo "Error:: Can't start DWDS (Relay), because DWDS (Client) not configured!"
                     27:        exit 1
                     28: else
1.2.2.1   misho      29:        eval "$DWDS_CLI"
1.2       misho      30: fi
                     31: 
1.2.2.1   misho      32: ifconfig $IFACE create wlandev $WIFIDEV $CLONEOPTS wlanmode hostap || exit
                     33: if [ -n "$REGDOMAIN" ]; then
                     34:        ifconfig $IFACE regdomain $REGDOMAIN
                     35: fi
                     36: if [ -n "$COUNTRY" ]; then
                     37:        ifconfig $IFACE country $COUNTRY
                     38: fi
                     39: if [ -n "$WIFIOPTS" ]; then
                     40:        ifconfig $IFACE $WIFIOPTS
                     41: fi
                     42: if [ -n "$BINT" ]; then
                     43:        ifconfig $IFACE bintval $BINT
                     44: fi
                     45: if [ -n "$CHAN" ]; then
                     46:        ifconfig $IFACE channel $CHAN
                     47: fi
                     48: if [ -n "$SSID" ]; then
                     49:        ifconfig $IFACE ssid $SSID
                     50: fi
                     51: if [ -n "$IP" ]; then
                     52:        ifconfig $IFACE inet $IP
                     53: fi
1.2.2.2 ! misho      54: if [ -n "$IP6" ]; then
        !            55:        ifconfig $IFACE inet6 $IP6
        !            56: fi
1.2.2.1   misho      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+auth+wds+11n

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