hostname
This commit is contained in:
parent
756b17e18b
commit
b7f319d849
|
@ -1804,6 +1804,7 @@ function mesh_batman_bridge {
|
|||
echo ' echo "error: unable to find wifi interface, not enabling batman-adv mesh"' >> $batman_script
|
||||
echo ' return' >> $batman_script
|
||||
echo ' fi' >> $batman_script
|
||||
echo ' sed -i "s|hosts:.*|hosts: files mdns4_minimal [NOTFOUND=return] dns $(hostname)|g" /etc/nsswitch.conf' >> $batman_script
|
||||
echo ' echo "info: enabling batman-adv mesh network $ESSID on $IFACE"' >> $batman_script
|
||||
echo ' systemctl stop network-manager' >> $batman_script
|
||||
echo ' sleep 5' >> $batman_script
|
||||
|
|
|
@ -179,6 +179,7 @@ function mesh_batman {
|
|||
echo ' apt-get -y install avahi-utils avahi-autoipd avahi-daemon avahi-dnsconfd' >> $batman_script
|
||||
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|hosts:.*|hosts: files mdns4_minimal [NOTFOUND=return] dns $(hostname)|g" /etc/nsswitch.conf' >> $batman_script
|
||||
echo 'fi' >> $batman_script
|
||||
echo '' >> $batman_script
|
||||
echo '# Mesh definition' >> $batman_script
|
||||
|
|
Loading…
Reference in New Issue