Try disallowing other stacks
This commit is contained in:
parent
fe8e416909
commit
c9ff98c848
|
@ -2045,7 +2045,7 @@ function mesh_babel {
|
||||||
echo ' sed -i "s|host-name=.*|host-name=$(hostname)|g" /etc/avahi/avahi-daemon.conf' >> $babel_script
|
echo ' sed -i "s|host-name=.*|host-name=$(hostname)|g" /etc/avahi/avahi-daemon.conf' >> $babel_script
|
||||||
echo ' sed -i "s|use-ipv4=.*|use-ipv4=yes|g" /etc/avahi/avahi-daemon.conf' >> $babel_script
|
echo ' sed -i "s|use-ipv4=.*|use-ipv4=yes|g" /etc/avahi/avahi-daemon.conf' >> $babel_script
|
||||||
echo ' sed -i "s|use-ipv6=.*|use-ipv6=no|g" /etc/avahi/avahi-daemon.conf' >> $babel_script
|
echo ' sed -i "s|use-ipv6=.*|use-ipv6=no|g" /etc/avahi/avahi-daemon.conf' >> $babel_script
|
||||||
echo ' sed -i "s|hosts:.*|hosts: files mdns4_minimal dns mdns4 mdns|g" /etc/nsswitch.conf' >> $babel_script
|
echo ' sed -i "s|hosts:.*|hosts: files dns|g" /etc/nsswitch.conf' >> $babel_script
|
||||||
echo ' systemctl restart avahi-daemon' >> $babel_script
|
echo ' systemctl restart avahi-daemon' >> $babel_script
|
||||||
echo 'fi' >> $babel_script
|
echo 'fi' >> $babel_script
|
||||||
echo '' >> $babel_script
|
echo '' >> $babel_script
|
||||||
|
@ -2146,7 +2146,8 @@ function mesh_batman_bridge {
|
||||||
echo ' sed -i "s|host-name=.*|host-name=$(hostname)|g" /etc/avahi/avahi-daemon.conf' >> $batman_script
|
echo ' sed -i "s|host-name=.*|host-name=$(hostname)|g" /etc/avahi/avahi-daemon.conf' >> $batman_script
|
||||||
echo ' sed -i "s|use-ipv4=.*|use-ipv4=yes|g" /etc/avahi/avahi-daemon.conf' >> $batman_script
|
echo ' sed -i "s|use-ipv4=.*|use-ipv4=yes|g" /etc/avahi/avahi-daemon.conf' >> $batman_script
|
||||||
echo ' sed -i "s|use-ipv6=.*|use-ipv6=no|g" /etc/avahi/avahi-daemon.conf' >> $batman_script
|
echo ' sed -i "s|use-ipv6=.*|use-ipv6=no|g" /etc/avahi/avahi-daemon.conf' >> $batman_script
|
||||||
echo ' sed -i "s|hosts:.*|hosts: files mdns4_minimal dns mdns4 mdns|g" /etc/nsswitch.conf' >> $batman_script
|
echo ' sed -i "s|#disallow-other-stacks=.*|disallow-other-stacks=yes|g" /etc/avahi/avahi-daemon.conf' >> $batman_script
|
||||||
|
echo ' sed -i "s|hosts:.*|hosts: files dns|g" /etc/nsswitch.conf' >> $batman_script
|
||||||
echo 'fi' >> $batman_script
|
echo 'fi' >> $batman_script
|
||||||
echo '' >> $batman_script
|
echo '' >> $batman_script
|
||||||
echo '# Mesh definition' >> $batman_script
|
echo '# Mesh definition' >> $batman_script
|
||||||
|
|
|
@ -234,7 +234,8 @@ function mesh_batman {
|
||||||
echo ' sed -i "s|host-name=.*|host-name=$(hostname)|g" /etc/avahi/avahi-daemon.conf' >> $batman_script
|
echo ' sed -i "s|host-name=.*|host-name=$(hostname)|g" /etc/avahi/avahi-daemon.conf' >> $batman_script
|
||||||
echo ' sed -i "s|use-ipv4=.*|use-ipv4=yes|g" /etc/avahi/avahi-daemon.conf' >> $batman_script
|
echo ' sed -i "s|use-ipv4=.*|use-ipv4=yes|g" /etc/avahi/avahi-daemon.conf' >> $batman_script
|
||||||
echo ' sed -i "s|use-ipv6=.*|use-ipv6=no|g" /etc/avahi/avahi-daemon.conf' >> $batman_script
|
echo ' sed -i "s|use-ipv6=.*|use-ipv6=no|g" /etc/avahi/avahi-daemon.conf' >> $batman_script
|
||||||
echo ' sed -i "s|hosts:.*|hosts: files mdns4_minimal dns mdns4 mdns|g" /etc/nsswitch.conf' >> $batman_script
|
echo ' sed -i "s|#disallow-other-stacks=.*|disallow-other-stacks=yes|g" /etc/avahi/avahi-daemon.conf' >> $batman_script
|
||||||
|
echo ' sed -i "s|hosts:.*|hosts: files dns|g" /etc/nsswitch.conf' >> $batman_script
|
||||||
echo ' if [ -f /bin/systemctl ]; then' >> $batman_script
|
echo ' if [ -f /bin/systemctl ]; then' >> $batman_script
|
||||||
echo ' systemctl restart avahi-daemon' >> $batman_script
|
echo ' systemctl restart avahi-daemon' >> $batman_script
|
||||||
echo ' else' >> $batman_script
|
echo ' else' >> $batman_script
|
||||||
|
|
Loading…
Reference in New Issue