usbmode: remove devices with unsupported modes
remove files which include the following mode options BlackberryMode OptionMode PantechMode QuantaMode Signed-off-by: Julian Labus <julian@labus-online.de>
This commit is contained in:
		
				
					committed by
					
						
						John Crispin
					
				
			
			
				
	
			
			
			
						parent
						
							7783f31359
						
					
				
				
					commit
					b757de65b3
				
			@@ -40,8 +40,13 @@ endef
 | 
				
			|||||||
define Build/Prepare
 | 
					define Build/Prepare
 | 
				
			||||||
	$(Build/Prepare/Default)
 | 
						$(Build/Prepare/Default)
 | 
				
			||||||
	tar xvfj $(DL_DIR)/$(PKG_DATA_FILENAME) -C $(PKG_BUILD_DIR)
 | 
						tar xvfj $(DL_DIR)/$(PKG_DATA_FILENAME) -C $(PKG_BUILD_DIR)
 | 
				
			||||||
	rm -f \
 | 
						#remove devices with unsupported modes
 | 
				
			||||||
		$(PKG_BUILD_DIR)/$(PKG_DATA_PATH)/usb_modeswitch.d/05c6:1000:sVe=GT
 | 
						for filevar in $(PKG_BUILD_DIR)/$(PKG_DATA_PATH)/usb_modeswitch.d/* ; \
 | 
				
			||||||
 | 
						do \
 | 
				
			||||||
 | 
							if grep -q -E '(Quanta|Option|Blackberry|Pantech)Mode' "$$$$filevar" ; then \
 | 
				
			||||||
 | 
								rm "$$$$filevar" ; \
 | 
				
			||||||
 | 
							fi \
 | 
				
			||||||
 | 
						done
 | 
				
			||||||
	cp ./data/* $(PKG_BUILD_DIR)/$(PKG_DATA_PATH)/usb_modeswitch.d/
 | 
						cp ./data/* $(PKG_BUILD_DIR)/$(PKG_DATA_PATH)/usb_modeswitch.d/
 | 
				
			||||||
	#in order to keep the Lede GIT repo free of filenames with colons,
 | 
						#in order to keep the Lede GIT repo free of filenames with colons,
 | 
				
			||||||
	#we name the files xxxx-yyyy
 | 
						#we name the files xxxx-yyyy
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user