| 
				
			 | 
			
			
				@@ -119,7 +119,11 @@ function mesh_babel { 
			 | 
		
	
		
			
			| 
				119
			 | 
			
				119
			 | 
			
			
				   echo '    sed -i "s|#host-name=.*|host-name=$(hostname)|g" /etc/avahi/avahi-daemon.conf' >> $babel_script 
			 | 
		
	
		
			
			| 
				120
			 | 
			
				120
			 | 
			
			
				   echo '    sed -i "s|host-name=.*|host-name=$(hostname)|g" /etc/avahi/avahi-daemon.conf' >> $babel_script 
			 | 
		
	
		
			
			| 
				121
			 | 
			
				121
			 | 
			
			
				   echo '    if ! grep -q "avahi-daemon" /etc/crontab; then' >> $babel_script 
			 | 
		
	
		
			
			| 
				122
			 | 
			
				
			 | 
			
			
				-  echo "        echo '2 *   * * *   root    systemctl restart avahi-daemon' >> /etc/crontab" >> $babel_script 
			 | 
		
	
		
			
			| 
				
			 | 
			
				122
			 | 
			
			
				+  echo '        if [ -f /bin/systemctl ]; then' >> $babel_script 
			 | 
		
	
		
			
			| 
				
			 | 
			
				123
			 | 
			
			
				+  echo "            echo '2 *   * * *   root    systemctl restart avahi-daemon > /dev/null' >> /etc/crontab" >> $babel_script 
			 | 
		
	
		
			
			| 
				
			 | 
			
				124
			 | 
			
			
				+  echo '        else' >> $babel_script 
			 | 
		
	
		
			
			| 
				
			 | 
			
				125
			 | 
			
			
				+  echo "            echo '2 *   * * *   root    service avahi-daemon restart > /dev/null' >> /etc/crontab" >> $babel_script 
			 | 
		
	
		
			
			| 
				
			 | 
			
				126
			 | 
			
			
				+  echo '        fi' >> $babel_script 
			 | 
		
	
		
			
			| 
				123
			 | 
			
				127
			 | 
			
			
				   echo '    fi' >> $babel_script 
			 | 
		
	
		
			
			| 
				124
			 | 
			
				128
			 | 
			
			
				   echo '    if [ -f /bin/systemctl ]; then' >> $babel_script 
			 | 
		
	
		
			
			| 
				125
			 | 
			
				129
			 | 
			
			
				   echo '        systemctl restart avahi-daemon' >> $babel_script 
			 | 
		
	
	
		
			
			| 
				
			 | 
			
			
				@@ -199,7 +203,11 @@ function mesh_batman { 
			 | 
		
	
		
			
			| 
				199
			 | 
			
				203
			 | 
			
			
				   echo '    sed -i "s|use-ipv6=.*|use-ipv6=no|g" /etc/avahi/avahi-daemon.conf' >> $batman_script 
			 | 
		
	
		
			
			| 
				200
			 | 
			
				204
			 | 
			
			
				   echo '    sed -i "s|hosts:.*|hosts:          files mdns4_minimal dns mdns4 mdns|g" /etc/nsswitch.conf' >> $batman_script 
			 | 
		
	
		
			
			| 
				201
			 | 
			
				205
			 | 
			
			
				   echo '    if ! grep -q "avahi-daemon" /etc/crontab; then' >> $batman_script 
			 | 
		
	
		
			
			| 
				202
			 | 
			
				
			 | 
			
			
				-  echo "        echo '2 *   * * *   root    systemctl restart avahi-daemon' >> /etc/crontab" >> $batman_script 
			 | 
		
	
		
			
			| 
				
			 | 
			
				206
			 | 
			
			
				+  echo '        if [ -f /bin/systemctl ]; then' >> $batman_script 
			 | 
		
	
		
			
			| 
				
			 | 
			
				207
			 | 
			
			
				+  echo "            echo '2 *   * * *   root    systemctl restart avahi-daemon > /dev/null' >> /etc/crontab" >> $batman_script 
			 | 
		
	
		
			
			| 
				
			 | 
			
				208
			 | 
			
			
				+  echo '        else' >> $batman_script 
			 | 
		
	
		
			
			| 
				
			 | 
			
				209
			 | 
			
			
				+  echo "            echo '2 *   * * *   root    service avahi-daemon restart > /dev/null' >> /etc/crontab" >> $batman_script 
			 | 
		
	
		
			
			| 
				
			 | 
			
				210
			 | 
			
			
				+  echo '        fi' >> $batman_script 
			 | 
		
	
		
			
			| 
				203
			 | 
			
				211
			 | 
			
			
				   echo '    fi' >> $batman_script 
			 | 
		
	
		
			
			| 
				204
			 | 
			
				212
			 | 
			
			
				   echo 'fi' >> $batman_script 
			 | 
		
	
		
			
			| 
				205
			 | 
			
				213
			 | 
			
			
				   echo '' >> $batman_script 
			 |