version 1.2, 2011/11/02 09:51:32
|
version 1.2.18.1, 2015/03/05 22:31:59
|
Line 2
|
Line 2
|
|
|
IFACE="wlan0" |
IFACE="wlan0" |
WIFIDEV="ath0" |
WIFIDEV="ath0" |
|
CLONEOPTS="" |
|
|
REGDOMAIN="" |
REGDOMAIN="" |
COUNTRY="" |
COUNTRY="" |
Line 11 CHAN="36:a"
|
Line 12 CHAN="36:a"
|
BINT="100" |
BINT="100" |
WIFIOPTS="" |
WIFIOPTS="" |
|
|
OPT="" | OPTS="" |
IP="172.31.1.1/30" |
IP="172.31.1.1/30" |
|
|
|
[ -z "$IFACE" -o -z "$WIFIDEV" ] && exit |
|
|
echo "Config wireless Mesh interface $IFACE ..." |
echo "Config wireless Mesh interface $IFACE ..." |
|
|
ifconfig $IFACE create wlandev $WIFIDEV wlanmode mesh | ifconfig $IFACE create wlandev $WIFIDEV $CLONEOPTS wlanmode mesh || exit |
#ifconfig $IFACE regdomain $REGDOMAIN | if [ -n "$REGDOMAIN" ]; then |
#ifconfig $IFACE country $COUNTRY | ifconfig $IFACE regdomain $REGDOMAIN |
ifconfig $IFACE $WIFIOPTS | fi |
ifconfig $IFACE bintval $BINT | if [ -n "$COUNTRY" ]; then |
ifconfig $IFACE channel $CHAN | ifconfig $IFACE country $COUNTRY |
| fi |
ifconfig $IFACE meshid $MESHID | if [ -n "$WIFIOPTS" ]; then |
ifconfig $IFACE inet ${IP} ${OPT} up | ifconfig $IFACE $WIFIOPTS |
| fi |
| if [ -n "$BINT" ]; then |
| ifconfig $IFACE bintval $BINT |
| fi |
| if [ -n "$CHAN" ]; then |
| ifconfig $IFACE channel $CHAN |
| fi |
| if [ -n "$MESHID" ]; then |
| ifconfig $IFACE meshid $MESHID |
| fi |
| if [ -n "$IP" ]; then |
| ifconfig $IFACE inet $IP |
| fi |
| ifconfig $IFACE $OPTS up |
|
|
[ -x /etc/sysctl.$IFACE ] && /etc/sysctl.$IFACE |
[ -x /etc/sysctl.$IFACE ] && /etc/sysctl.$IFACE |
|
|