Pārlūkot izejas kodu

avahi on ipv6 on bmx

Bob Mottram 7 gadus atpakaļ
vecāks
revīzija
945e703a8d

+ 5
- 2
src/freedombone-mesh-batman Parādīt failu

@@ -161,8 +161,6 @@ function start {
161 161
     systemctl stop network-manager
162 162
     sleep 5
163 163
 
164
-    systemctl stop bmx6
165
-    systemctl disable bmx6
166 164
     systemctl stop dnsmasq
167 165
     systemctl disable dnsmasq
168 166
 
@@ -191,6 +189,11 @@ function start {
191 189
 
192 190
     modprobe batman-adv
193 191
 
192
+    # avahi on ipv6
193
+    sed -i 's|use-ipv4=.*|use-ipv4=yes|g' /etc/avahi/avahi-daemon.conf
194
+    sed -i 's|use-ipv6=.*|use-ipv6=no|g' /etc/avahi/avahi-daemon.conf
195
+    systemctl restart avahi-daemon
196
+
194 197
     add_wifi_interface $IFACE $WIFI_SSID ad-hoc $CHANNEL
195 198
     avahi-autoipd --force-bind --daemonize --wait $IFACE
196 199
 

+ 5
- 0
src/freedombone-mesh-bmx6 Parādīt failu

@@ -177,6 +177,11 @@ function start {
177 177
         sed -i "s|ExecStart=.*|ExecStart=/usr/sbin/bmx6 dev=${IFACE} dev=${EIFACE}|g" /etc/systemd/system/bmx6.service
178 178
     fi
179 179
 
180
+    # avahi on ipv6
181
+    sed -i 's|use-ipv4=.*|use-ipv4=no|g' /etc/avahi/avahi-daemon.conf
182
+    sed -i 's|use-ipv6=.*|use-ipv6=yes|g' /etc/avahi/avahi-daemon.conf
183
+    systemctl restart avahi-daemon
184
+
180 185
     systemctl daemon-reload
181 186
     systemctl enable bmx6
182 187
     systemctl start bmx6

+ 5
- 0
src/freedombone-mesh-bmx7 Parādīt failu

@@ -175,6 +175,11 @@ function start {
175 175
         sed -i "s|ExecStart=.*|ExecStart=/usr/sbin/bmx7 dev=${IFACE} dev=${EIFACE}|g" /etc/systemd/system/bmx7.service
176 176
     fi
177 177
 
178
+    # avahi on ipv6
179
+    sed -i 's|use-ipv4=.*|use-ipv4=no|g' /etc/avahi/avahi-daemon.conf
180
+    sed -i 's|use-ipv6=.*|use-ipv6=yes|g' /etc/avahi/avahi-daemon.conf
181
+    systemctl restart avahi-daemon
182
+
178 183
     systemctl daemon-reload
179 184
     systemctl enable bmx7
180 185
     systemctl start bmx7