| 
				
			 | 
			
			
				@@ -60,6 +60,24 @@ function mesh_avahi { 
			 | 
		
	
		
			
			| 
				60
			 | 
			
				60
			 | 
			
			
				     decarray=( 1 2 3 4 5 6 7 8 9 0 ) 
			 | 
		
	
		
			
			| 
				61
			 | 
			
				61
			 | 
			
			
				     PEER_ID=${decarray[$RANDOM%10]}${decarray[$RANDOM%10]}${decarray[$RANDOM%10]}${decarray[$RANDOM%10]}${decarray[$RANDOM%10]}${decarray[$RANDOM%10]}${decarray[$RANDOM%10]}${decarray[$RANDOM%10]} 
			 | 
		
	
		
			
			| 
				62
			 | 
			
				62
			 | 
			
			
				     sed -i "s|#host-name=.*|host-name=P$PEER_ID|g" $rootdir/etc/avahi/avahi-daemon.conf 
			 | 
		
	
		
			
			| 
				
			 | 
			
				63
			 | 
			
			
				+    sed -i "s|use-ipv4=.*|use-ipv4=no|g" $rootdir/etc/avahi/avahi-daemon.conf 
			 | 
		
	
		
			
			| 
				
			 | 
			
				64
			 | 
			
			
				+    sed -i "s|use-ipv6=.*|use-ipv6=yes|g" $rootdir/etc/avahi/avahi-daemon.conf 
			 | 
		
	
		
			
			| 
				
			 | 
			
				65
			 | 
			
			
				+    sed -i "s|#allow-interfaces=.*|allow-interfaces=wlan0, wlan1, wlan2, wlan3, wlan4, wlan5|g" $rootdir/etc/avahi/avahi-daemon.conf 
			 | 
		
	
		
			
			| 
				
			 | 
			
				66
			 | 
			
			
				+    sed -i "s|allow-interfaces=.*|allow-interfaces=wlan0, wlan1, wlan2, wlan3, wlan4, wlan5|g" $rootdir/etc/avahi/avahi-daemon.conf 
			 | 
		
	
		
			
			| 
				
			 | 
			
				67
			 | 
			
			
				+    sed -i "s|#deny-interfaces=.*|deny-interfaces=eth0, eth1, eth2, eth3, eth4, eth5|g" $rootdir/etc/avahi/avahi-daemon.conf 
			 | 
		
	
		
			
			| 
				
			 | 
			
				68
			 | 
			
			
				+    sed -i "s|deny-interfaces=.*|deny-interfaces=eth0, eth1, eth2, eth3, eth4, eth5|g" $rootdir/etc/avahi/avahi-daemon.conf 
			 | 
		
	
		
			
			| 
				
			 | 
			
				69
			 | 
			
			
				+    sed -i "s|#disallow-other-stacks=.*|disallow-other-stacks=yes|g" $rootdir/etc/avahi/avahi-daemon.conf 
			 | 
		
	
		
			
			| 
				
			 | 
			
				70
			 | 
			
			
				+    sed -i "s|disallow-other-stacks=.*|disallow-other-stacks=yes|g" $rootdir/etc/avahi/avahi-daemon.conf 
			 | 
		
	
		
			
			| 
				
			 | 
			
				71
			 | 
			
			
				+    sed -i "s|#publish_addresses=.*|publish_addresses=yes|g" $rootdir/etc/avahi/avahi-daemon.conf 
			 | 
		
	
		
			
			| 
				
			 | 
			
				72
			 | 
			
			
				+    sed -i "s|publish_addresses=.*|publish_addresses=yes|g" $rootdir/etc/avahi/avahi-daemon.conf 
			 | 
		
	
		
			
			| 
				
			 | 
			
				73
			 | 
			
			
				+    sed -i "s|#publish-hinfo=.*|publish-hinfo=no|g" $rootdir/etc/avahi/avahi-daemon.conf 
			 | 
		
	
		
			
			| 
				
			 | 
			
				74
			 | 
			
			
				+    sed -i "s|publish-hinfo=.*|publish-hinfo=no|g" $rootdir/etc/avahi/avahi-daemon.conf 
			 | 
		
	
		
			
			| 
				
			 | 
			
				75
			 | 
			
			
				+    sed -i "s|#publish-workstation=.*|publish-workstation=no|g" $rootdir/etc/avahi/avahi-daemon.conf 
			 | 
		
	
		
			
			| 
				
			 | 
			
				76
			 | 
			
			
				+    sed -i "s|publish-workstation=.*|publish-workstation=no|g" $rootdir/etc/avahi/avahi-daemon.conf 
			 | 
		
	
		
			
			| 
				
			 | 
			
				77
			 | 
			
			
				+    sed -i "s|#publish-domain=.*|publish-domain=yes|g" $rootdir/etc/avahi/avahi-daemon.conf 
			 | 
		
	
		
			
			| 
				
			 | 
			
				78
			 | 
			
			
				+    sed -i "s|publish-domain=.*|publish-domain=yes|g" $rootdir/etc/avahi/avahi-daemon.conf 
			 | 
		
	
		
			
			| 
				
			 | 
			
				79
			 | 
			
			
				+    sed -i "s|#publish-a-on-ipv6=.*|publish-a-on-ipv6=yes|g" $rootdir/etc/avahi/avahi-daemon.conf 
			 | 
		
	
		
			
			| 
				
			 | 
			
				80
			 | 
			
			
				+    sed -i "s|publish-a-on-ipv6=.*|publish-a-on-ipv6=yes|g" $rootdir/etc/avahi/avahi-daemon.conf 
			 | 
		
	
		
			
			| 
				63
			 | 
			
				81
			 | 
			
			
				  
			 | 
		
	
		
			
			| 
				64
			 | 
			
				82
			 | 
			
			
				     if [ ! -d $rootdir/etc/avahi/services ]; then 
			 | 
		
	
		
			
			| 
				65
			 | 
			
				83
			 | 
			
			
				         mkdir -p $rootdir/etc/avahi/services 
			 |