| 
				
			 | 
			
			
				@@ -1093,10 +1093,15 @@ function configure_user_interface { 
			 | 
		
	
		
			
			| 
				1093
			 | 
			
				1093
			 | 
			
			
				  
			 | 
		
	
		
			
			| 
				1094
			 | 
			
				1094
			 | 
			
			
				 	if [[ $VARIANT != "usb" ]]; then 
			 | 
		
	
		
			
			| 
				1095
			 | 
			
				1095
			 | 
			
			
				 		# log in automatically 
			 | 
		
	
		
			
			| 
				1096
			 | 
			
				
			 | 
			
			
				-		chroot "$rootdir" apt-get -y install nodm 
			 | 
		
	
		
			
			| 
				
			 | 
			
				1096
			 | 
			
			
				+		chroot "$rootdir" apt-get -y install nodm xinit 
			 | 
		
	
		
			
			| 
				1097
			 | 
			
				1097
			 | 
			
			
				 		echo 'NODM_ENABLED=true' > /etc/default/nodm 
			 | 
		
	
		
			
			| 
				1098
			 | 
			
				1098
			 | 
			
			
				 		echo "NODM_USER=$MY_USERNAME" >> /etc/default/nodm 
			 | 
		
	
		
			
			| 
				1099
			 | 
			
				1099
			 | 
			
			
				  
			 | 
		
	
		
			
			| 
				
			 | 
			
				1100
			 | 
			
			
				+		chroot "$rootdir" mkdir /etc/systemd/system/getty@tty1.service.d 
			 | 
		
	
		
			
			| 
				
			 | 
			
				1101
			 | 
			
			
				+		echo '[Service]' > $rootdir/etc/systemd/system/getty@tty1.service.d/override.conf 
			 | 
		
	
		
			
			| 
				
			 | 
			
				1102
			 | 
			
			
				+		echo 'ExecStart=' >> $rootdir/etc/systemd/system/getty@tty1.service.d/override.conf 
			 | 
		
	
		
			
			| 
				
			 | 
			
				1103
			 | 
			
			
				+		echo 'ExecStart=-/sbin/agetty --autologin fbone --noclear %I $TERM' >> $rootdir/etc/systemd/system/getty@tty1.service.d/override.conf 
			 | 
		
	
		
			
			| 
				
			 | 
			
				1104
			 | 
			
			
				+ 
			 | 
		
	
		
			
			| 
				1100
			 | 
			
				1105
			 | 
			
			
				 		# change the desktop background 
			 | 
		
	
		
			
			| 
				1101
			 | 
			
				1106
			 | 
			
			
				 		if [ $MESH_DESKTOP_BACKGROUND_IMAGE ]; then 
			 | 
		
	
		
			
			| 
				1102
			 | 
			
				1107
			 | 
			
			
				 			if [ -f $MESH_DESKTOP_BACKGROUND_IMAGE ]; then 
			 |