avahi on ipv6 on bmx
This commit is contained in:
parent
6a82784932
commit
945e703a8d
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue