avahi on ipv6 on bmx

This commit is contained in:
Bob Mottram 2018-01-13 21:02:45 +00:00
parent 6a82784932
commit 945e703a8d
3 changed files with 15 additions and 2 deletions

View File

@ -161,8 +161,6 @@ function start {
systemctl stop network-manager systemctl stop network-manager
sleep 5 sleep 5
systemctl stop bmx6
systemctl disable bmx6
systemctl stop dnsmasq systemctl stop dnsmasq
systemctl disable dnsmasq systemctl disable dnsmasq
@ -191,6 +189,11 @@ function start {
modprobe batman-adv 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 add_wifi_interface $IFACE $WIFI_SSID ad-hoc $CHANNEL
avahi-autoipd --force-bind --daemonize --wait $IFACE avahi-autoipd --force-bind --daemonize --wait $IFACE

View File

@ -177,6 +177,11 @@ function start {
sed -i "s|ExecStart=.*|ExecStart=/usr/sbin/bmx6 dev=${IFACE} dev=${EIFACE}|g" /etc/systemd/system/bmx6.service sed -i "s|ExecStart=.*|ExecStart=/usr/sbin/bmx6 dev=${IFACE} dev=${EIFACE}|g" /etc/systemd/system/bmx6.service
fi 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 daemon-reload
systemctl enable bmx6 systemctl enable bmx6
systemctl start bmx6 systemctl start bmx6

View File

@ -175,6 +175,11 @@ function start {
sed -i "s|ExecStart=.*|ExecStart=/usr/sbin/bmx7 dev=${IFACE} dev=${EIFACE}|g" /etc/systemd/system/bmx7.service sed -i "s|ExecStart=.*|ExecStart=/usr/sbin/bmx7 dev=${IFACE} dev=${EIFACE}|g" /etc/systemd/system/bmx7.service
fi 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 daemon-reload
systemctl enable bmx7 systemctl enable bmx7
systemctl start bmx7 systemctl start bmx7