Annotation of elwix/config/etc/uboot/rc.d/011.adhoc.stop, revision 1.2
1.2 ! misho 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>