浏览代码

No autoipd on bmx

Bob Mottram 7 年前
父节点
当前提交
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,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'

+ 0
- 4
src/freedombone-mesh-bmx7 查看文件

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