File:  [ELWIX - Embedded LightWeight unIX -] / elwix / config / etc / default / rc.d / 011.adhoc.stop
Revision 1.1.1.1.4.1: download - view: text, annotated - select for diffs - revision graph
Tue Oct 25 13:03:40 2011 UTC (12 years, 8 months ago) by misho
Branches: elwix1_5
Diff to: branchpoint 1.1.1.1: preferred, unified
changed boot scripts for WiFi

    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="adhoc"
   12: CHAN="36:a"
   13: BINT="100"
   14: WIFIOPTS=""
   15: 
   16: OPT=""
   17: IP="172.31.1.1/30"
   18: 
   19: echo "Config wireless AdHoc interface $IFACE ..."
   20: 
   21: ifconfig $IFACE create wlandev $WIFIDEV wlanmode ibss
   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: 
   29: ifconfig $IFACE ssid $SSID
   30: ifconfig $IFACE inet ${IP} ${OPT} up
   31: 
   32: [ -x /etc/sysctl.$IFACE ] && /etc/sysctl.$IFACE
   33: 
   34: [ -x /etc/wifi_up.sh ] && /etc/wifi_up.sh $IFACE >/dev/null 2>&1 &
   35: 
   36: #wlandebug -i $IFACE output+inact+node+11n

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