Bob Mottram 7 лет назад
Родитель
Сommit
6a82784932
2 измененных файлов: 2 добавлений и 8 удалений
  1. 2
    4
      src/freedombone-mesh-bmx6
  2. 0
    4
      src/freedombone-mesh-bmx7

+ 2
- 4
src/freedombone-mesh-bmx6 Просмотреть файл

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

+ 0
- 4
src/freedombone-mesh-bmx7 Просмотреть файл

68
         fi
68
         fi
69
     fi
69
     fi
70
 
70
 
71
-    avahi-autoipd -k $BRIDGE
72
-    avahi-autoipd -k $IFACE
73
     ifconfig $IFACE down -promisc
71
     ifconfig $IFACE down -promisc
74
 
72
 
75
     ifconfig $IFACE mtu 1500
73
     ifconfig $IFACE mtu 1500
181
     systemctl enable bmx7
179
     systemctl enable bmx7
182
     systemctl start bmx7
180
     systemctl start bmx7
183
 
181
 
184
-    avahi-autoipd --force-bind --daemonize --wait $IFACE
185
-
186
     # NOTE: Don't connect the secondary wifi device. hostapd will handle that by itself
182
     # NOTE: Don't connect the secondary wifi device. hostapd will handle that by itself
187
 
183
 
188
     ethernet_connected='0'
184
     ethernet_connected='0'