base-files: respect .auto option when running coldplug_interface_*() hooks on boot
SVN-Revision: 21588
This commit is contained in:
		@@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
 | 
				
			|||||||
include $(INCLUDE_DIR)/kernel.mk
 | 
					include $(INCLUDE_DIR)/kernel.mk
 | 
				
			||||||
 | 
					
 | 
				
			||||||
PKG_NAME:=base-files
 | 
					PKG_NAME:=base-files
 | 
				
			||||||
PKG_RELEASE:=44
 | 
					PKG_RELEASE:=45
 | 
				
			||||||
 | 
					
 | 
				
			||||||
PKG_FILE_DEPENDS:=$(PLATFORM_DIR)/ $(GENERIC_PLATFORM_DIR)/base-files/
 | 
					PKG_FILE_DEPENDS:=$(PLATFORM_DIR)/ $(GENERIC_PLATFORM_DIR)/base-files/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -23,7 +23,10 @@ boot() {
 | 
				
			|||||||
		local proto
 | 
							local proto
 | 
				
			||||||
		config_get proto "$ifc" proto
 | 
							config_get proto "$ifc" proto
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		type "coldplug_interface_$proto" >/dev/null && \
 | 
							local auto
 | 
				
			||||||
 | 
							config_get_bool auto "$ifc" auto 1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							type "coldplug_interface_$proto" >/dev/null && [ "$auto" = 1 ] && \
 | 
				
			||||||
			coldplug_interface_$proto "$ifc"
 | 
								coldplug_interface_$proto "$ifc"
 | 
				
			||||||
	done
 | 
						done
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user