Annotation of elwix/config/etc/default/rc.d/011.adhoc.stop, revision 1.1.1.1.4.2
1.1 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"
1.1.1.1.4.1 misho 13: BINT="100"
1.1 misho 14: WIFIOPTS=""
15:
16: OPT=""
17: IP="172.31.1.1/30"
18:
19: echo "Config wireless AdHoc interface $IFACE ..."
20:
1.1.1.1.4.1 misho 21: ifconfig $IFACE create wlandev $WIFIDEV wlanmode ibss
1.1.1.1.4.2! misho 22: #ifconfig $IFACE regdomain $REGDOMAIN
! 23: #ifconfig $IFACE country $COUNTRY
1.1.1.1.4.1 misho 24: ifconfig $IFACE $WIFIOPTS
25: ifconfig $IFACE bintval $BINT
26: ifconfig $IFACE channel $CHAN
27:
1.1 misho 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>