File:  [ELWIX - Embedded LightWeight unIX -] / elwix / config / etc / default / rc.d / 011.wds.stop
Revision 1.1.1.1.4.2: download - view: text, annotated - select for diffs - revision graph
Wed Nov 2 02:05:43 2011 UTC (12 years, 8 months ago) by misho
Branches: elwix1_5
Diff to: branchpoint 1.1.1.1: preferred, unified
comment 2 lines

    1: #!/bin/sh
    2: 
    3: BSSID="00:50:43:20:6f:a9"
    4: 
    5: IFACE="wlan0"
    6: WIFIDEV="ath0"
    7: 
    8: REGDOMAIN=""
    9: COUNTRY=""
   10: 
   11: SSID=""
   12: CHAN="-1"
   13: BINT="100"
   14: WIFIOPTS="-bgscan"
   15: 
   16: OPT=""
   17: IP="172.31.1.1/30"
   18: 
   19: echo "Config wireless WDS interface $IFACE ..."
   20: 
   21: ifconfig $IFACE create wlandev $WIFIDEV wlanmode wds wlanbssid $BSSID wdslegacy
   22: #ifconfig $IFACE regdomain $REGDOMAIN
   23: #ifconfig $IFACE country $COUNTRY
   24: ifconfig $IFACE $WIFIOPTS
   25: ifconfig $IFACE bintval $BINT
   26: ifconfig $IFACE channel $CHAN
   27: 
   28: ifconfig $IFACE ssid $SSID
   29: ifconfig $IFACE inet ${IP} ${OPT} up
   30: 
   31: [ -x /etc/sysctl.$IFACE ] && /etc/sysctl.$IFACE
   32: 
   33: [ -x /etc/wifi_up.sh ] && /etc/wifi_up.sh $IFACE >/dev/null 2>&1 &
   34: 
   35: #wlandebug -i $IFACE output+inact+node+11n

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