From 945e703a8d27166436867a91536b2a61869c0936 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 13 Jan 2018 21:02:45 +0000 Subject: [PATCH] avahi on ipv6 on bmx --- src/freedombone-mesh-batman | 7 +++++-- src/freedombone-mesh-bmx6 | 5 +++++ src/freedombone-mesh-bmx7 | 5 +++++ 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/src/freedombone-mesh-batman b/src/freedombone-mesh-batman index 8ea92a71..0cd74ff3 100755 --- a/src/freedombone-mesh-batman +++ b/src/freedombone-mesh-batman @@ -161,8 +161,6 @@ function start { systemctl stop network-manager sleep 5 - systemctl stop bmx6 - systemctl disable bmx6 systemctl stop dnsmasq systemctl disable dnsmasq @@ -191,6 +189,11 @@ function start { modprobe batman-adv + # avahi on ipv6 + sed -i 's|use-ipv4=.*|use-ipv4=yes|g' /etc/avahi/avahi-daemon.conf + sed -i 's|use-ipv6=.*|use-ipv6=no|g' /etc/avahi/avahi-daemon.conf + systemctl restart avahi-daemon + add_wifi_interface $IFACE $WIFI_SSID ad-hoc $CHANNEL avahi-autoipd --force-bind --daemonize --wait $IFACE diff --git a/src/freedombone-mesh-bmx6 b/src/freedombone-mesh-bmx6 index 7ff919c4..c89438ec 100755 --- a/src/freedombone-mesh-bmx6 +++ b/src/freedombone-mesh-bmx6 @@ -177,6 +177,11 @@ function start { sed -i "s|ExecStart=.*|ExecStart=/usr/sbin/bmx6 dev=${IFACE} dev=${EIFACE}|g" /etc/systemd/system/bmx6.service fi + # avahi on ipv6 + sed -i 's|use-ipv4=.*|use-ipv4=no|g' /etc/avahi/avahi-daemon.conf + sed -i 's|use-ipv6=.*|use-ipv6=yes|g' /etc/avahi/avahi-daemon.conf + systemctl restart avahi-daemon + systemctl daemon-reload systemctl enable bmx6 systemctl start bmx6 diff --git a/src/freedombone-mesh-bmx7 b/src/freedombone-mesh-bmx7 index 7d3cfc6f..d63c29ee 100755 --- a/src/freedombone-mesh-bmx7 +++ b/src/freedombone-mesh-bmx7 @@ -175,6 +175,11 @@ function start { sed -i "s|ExecStart=.*|ExecStart=/usr/sbin/bmx7 dev=${IFACE} dev=${EIFACE}|g" /etc/systemd/system/bmx7.service fi + # avahi on ipv6 + sed -i 's|use-ipv4=.*|use-ipv4=no|g' /etc/avahi/avahi-daemon.conf + sed -i 's|use-ipv6=.*|use-ipv6=yes|g' /etc/avahi/avahi-daemon.conf + systemctl restart avahi-daemon + systemctl daemon-reload systemctl enable bmx7 systemctl start bmx7