| 
				
			 | 
			
			
				@@ -91,6 +91,9 @@ WIFI_PASSPHRASE= 
			 | 
		
	
		
			
			| 
				91
			 | 
			
				91
			 | 
			
			
				 WIFI_HOTSPOT='no' 
			 | 
		
	
		
			
			| 
				92
			 | 
			
				92
			 | 
			
			
				 WIFI_NETWORKS_FILE=~/${PROJECT_NAME}-wifi.cfg 
			 | 
		
	
		
			
			| 
				93
			 | 
			
				93
			 | 
			
			
				  
			 | 
		
	
		
			
			| 
				
			 | 
			
				94
			 | 
			
			
				+# Whether to install non-free wifi drivers for the mesh client 
			 | 
		
	
		
			
			| 
				
			 | 
			
				95
			 | 
			
			
				+INSECURE='no' 
			 | 
		
	
		
			
			| 
				
			 | 
			
				96
			 | 
			
			
				+ 
			 | 
		
	
		
			
			| 
				94
			 | 
			
				97
			 | 
			
			
				 enable_eatmydata_override() { 
			 | 
		
	
		
			
			| 
				95
			 | 
			
				98
			 | 
			
			
				 	chroot $rootdir apt-get install --no-install-recommends -y eatmydata 
			 | 
		
	
		
			
			| 
				96
			 | 
			
				99
			 | 
			
			
				 	if [ -x $rootdir/usr/bin/eatmydata ] && \ 
			 | 
		
	
	
		
			
			| 
				
			 | 
			
			
				@@ -963,6 +966,23 @@ initialise_mesh() { 
			 | 
		
	
		
			
			| 
				963
			 | 
			
				966
			 | 
			
			
				 		return 
			 | 
		
	
		
			
			| 
				964
			 | 
			
				967
			 | 
			
			
				 	fi 
			 | 
		
	
		
			
			| 
				965
			 | 
			
				968
			 | 
			
			
				  
			 | 
		
	
		
			
			| 
				
			 | 
			
				969
			 | 
			
			
				+	if [[ $INSECURE == $'yes' ]]; then 
			 | 
		
	
		
			
			| 
				
			 | 
			
				970
			 | 
			
			
				+		echo  '*********************************************************' 
			 | 
		
	
		
			
			| 
				
			 | 
			
				971
			 | 
			
			
				+		echo $'WARNING: non-free wifi drivers are being installed.' 
			 | 
		
	
		
			
			| 
				
			 | 
			
				972
			 | 
			
			
				+		echo $'         This may compromise the security of your system.' 
			 | 
		
	
		
			
			| 
				
			 | 
			
				973
			 | 
			
			
				+		echo  '*********************************************************' 
			 | 
		
	
		
			
			| 
				
			 | 
			
				974
			 | 
			
			
				+ 
			 | 
		
	
		
			
			| 
				
			 | 
			
				975
			 | 
			
			
				+		# enable non-free repo 
			 | 
		
	
		
			
			| 
				
			 | 
			
				976
			 | 
			
			
				+		if ! grep -q "non-free" $rootdir/etc/apt/sources.list; then 
			 | 
		
	
		
			
			| 
				
			 | 
			
				977
			 | 
			
			
				+			chroot "$rootdir" sed -i "s| main| main non-free|g" /etc/apt/sources.list 
			 | 
		
	
		
			
			| 
				
			 | 
			
				978
			 | 
			
			
				+			chroot "$rootdir" apt-get update 
			 | 
		
	
		
			
			| 
				
			 | 
			
				979
			 | 
			
			
				+		fi 
			 | 
		
	
		
			
			| 
				
			 | 
			
				980
			 | 
			
			
				+ 
			 | 
		
	
		
			
			| 
				
			 | 
			
				981
			 | 
			
			
				+		# install proprietary wifi drivers 
			 | 
		
	
		
			
			| 
				
			 | 
			
				982
			 | 
			
			
				+		# see https://wiki.debian.org/iwlwifi 
			 | 
		
	
		
			
			| 
				
			 | 
			
				983
			 | 
			
			
				+		chroot "$rootdir" apt-get -y install firmware-iwlwifi 
			 | 
		
	
		
			
			| 
				
			 | 
			
				984
			 | 
			
			
				+	fi 
			 | 
		
	
		
			
			| 
				
			 | 
			
				985
			 | 
			
			
				+ 
			 | 
		
	
		
			
			| 
				966
			 | 
			
				986
			 | 
			
			
				 	mesh_firewall 
			 | 
		
	
		
			
			| 
				967
			 | 
			
				987
			 | 
			
			
				 	mesh_avahi 
			 | 
		
	
		
			
			| 
				968
			 | 
			
				988
			 | 
			
			
				 	mesh_batman 
			 |