|
@@ -38,6 +38,7 @@ source /usr/share/${PROJECT_NAME}/utils/${PROJECT_NAME}-utils-wifi
|
38
|
38
|
source /usr/share/${PROJECT_NAME}/utils/${PROJECT_NAME}-utils-mesh
|
39
|
39
|
|
40
|
40
|
mesh_protocol_init
|
|
41
|
+
|
41
|
42
|
update_wifi_adaptors
|
42
|
43
|
|
43
|
44
|
if [ ! $IFACE ]; then
|
|
@@ -68,8 +69,6 @@ function stop {
|
68
|
69
|
fi
|
69
|
70
|
fi
|
70
|
71
|
|
71
|
|
- avahi-autoipd -k $BRIDGE
|
72
|
|
- avahi-autoipd -k $IFACE
|
73
|
72
|
ifconfig $IFACE down -promisc
|
74
|
73
|
|
75
|
74
|
ifconfig $IFACE mtu 1500
|
|
@@ -124,6 +123,7 @@ function add_wifi_interface {
|
124
|
123
|
echo $"$ifname assigned MAC address $peermac"
|
125
|
124
|
iwconfig $ifname enc off
|
126
|
125
|
iwconfig $ifname mode $ifmode essid $ifssid channel $ifchannel
|
|
126
|
+ #iwconfig wlan0 mode ad-hoc ap 02:ca:ff:ee:ba:be channel 11 essid my-mesh-network
|
127
|
127
|
|
128
|
128
|
ifconfig $ifname up
|
129
|
129
|
}
|
|
@@ -181,8 +181,6 @@ function start {
|
181
|
181
|
systemctl enable bmx6
|
182
|
182
|
systemctl start bmx6
|
183
|
183
|
|
184
|
|
- avahi-autoipd --force-bind --daemonize --wait $IFACE
|
185
|
|
-
|
186
|
184
|
# NOTE: Don't connect the secondary wifi device. hostapd will handle that by itself
|
187
|
185
|
|
188
|
186
|
ethernet_connected='0'
|