|  | @@ -165,6 +165,12 @@ function remove_apps_selected {
 | 
	
		
			
			| 165 | 165 |          return
 | 
	
		
			
			| 166 | 166 |      fi
 | 
	
		
			
			| 167 | 167 |  
 | 
	
		
			
			|  | 168 | +    if [ -f /tmp/.upgrading ]; then
 | 
	
		
			
			|  | 169 | +        dialog --title $"Cannot remove apps" \
 | 
	
		
			
			|  | 170 | +               --msgbox $"A system upgrade is happening, so apps cannot be removed at this time" 6 60
 | 
	
		
			
			|  | 171 | +        return
 | 
	
		
			
			|  | 172 | +    fi
 | 
	
		
			
			|  | 173 | +
 | 
	
		
			
			| 168 | 174 |      # ask for confirmation
 | 
	
		
			
			| 169 | 175 |      dialog --title $"Remove applications" \
 | 
	
		
			
			| 170 | 176 |             --backtitle $"Freedombone" \
 | 
	
	
		
			
			|  | @@ -212,6 +218,12 @@ function install_apps_selected {
 | 
	
		
			
			| 212 | 218 |      fi
 | 
	
		
			
			| 213 | 219 |  
 | 
	
		
			
			| 214 | 220 |      if [[ "$select_all_apps" != "add-all" ]]; then
 | 
	
		
			
			|  | 221 | +        if [ -f /tmp/.upgrading ]; then
 | 
	
		
			
			|  | 222 | +            dialog --title $"Cannot install apps" \
 | 
	
		
			
			|  | 223 | +                   --msgbox $"A system upgrade is happening, so apps cannot be installed at this time" 6 60
 | 
	
		
			
			|  | 224 | +            return
 | 
	
		
			
			|  | 225 | +        fi
 | 
	
		
			
			|  | 226 | +
 | 
	
		
			
			| 215 | 227 |          # ask for confirmation
 | 
	
		
			
			| 216 | 228 |          if [ $n -eq 1 ]; then
 | 
	
		
			
			| 217 | 229 |              dialog --title $"$installs" \
 |