multicall: only enable applets actually compiled in
This commit is contained in:
		
							parent
							
								
									ff4822cf05
								
							
						
					
					
						commit
						b30e0223d0
					
				
					 1 changed files with 12 additions and 0 deletions
				
			
		| 
						 | 
					@ -23,16 +23,28 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
char *argv0;
 | 
					char *argv0;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#ifdef CONFIG_IFQUERY
 | 
				
			||||||
extern struct if_applet ifquery_applet;
 | 
					extern struct if_applet ifquery_applet;
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#ifdef CONFIG_IFUPDOWN
 | 
				
			||||||
extern struct if_applet ifup_applet;
 | 
					extern struct if_applet ifup_applet;
 | 
				
			||||||
extern struct if_applet ifdown_applet;
 | 
					extern struct if_applet ifdown_applet;
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
struct if_applet ifupdown_applet;
 | 
					struct if_applet ifupdown_applet;
 | 
				
			||||||
const struct if_applet *self_applet = NULL;
 | 
					const struct if_applet *self_applet = NULL;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
struct if_applet *applet_table[] = {
 | 
					struct if_applet *applet_table[] = {
 | 
				
			||||||
 | 
					#ifdef CONFIG_IFUPDOWN
 | 
				
			||||||
	&ifdown_applet,
 | 
						&ifdown_applet,
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					#ifdef CONFIG_IFQUERY
 | 
				
			||||||
	&ifquery_applet,
 | 
						&ifquery_applet,
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					#ifdef CONFIG_IFUPDOWN
 | 
				
			||||||
	&ifup_applet,
 | 
						&ifup_applet,
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
	&ifupdown_applet,
 | 
						&ifupdown_applet,
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue