| 
									
										
										
										
											2005-04-16 15:20:36 -07:00
										 |  |  | /* 
 | 
					
						
							|  |  |  |  * Copyright (C) 2002 Jeff Dike (jdike@karaya.com) | 
					
						
							|  |  |  |  * Licensed under the GPL | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #include <stdio.h>
 | 
					
						
							|  |  |  | #include <stdlib.h>
 | 
					
						
							| 
									
										
										
										
											2012-10-08 03:27:32 +01:00
										 |  |  | #include <init.h>
 | 
					
						
							| 
									
										
										
										
											2005-04-16 15:20:36 -07:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-03-31 15:23:40 -07:00
										 |  |  | static __initdata const char *config[] = { | 
					
						
							|  |  |  | "CONFIG" | 
					
						
							|  |  |  | }; | 
					
						
							| 
									
										
										
										
											2005-04-16 15:20:36 -07:00
										 |  |  | 
 | 
					
						
							|  |  |  | static int __init print_config(char *line, int *add) | 
					
						
							|  |  |  | { | 
					
						
							| 
									
										
										
										
											2009-03-31 15:23:40 -07:00
										 |  |  | 	int i; | 
					
						
							|  |  |  | 	for (i = 0; i < sizeof(config)/sizeof(config[0]); i++) | 
					
						
							|  |  |  | 		printf("%s", config[i]); | 
					
						
							| 
									
										
										
										
											2005-04-16 15:20:36 -07:00
										 |  |  | 	exit(0); | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | __uml_setup("--showconfig", print_config, | 
					
						
							|  |  |  | "--showconfig\n" | 
					
						
							|  |  |  | "    Prints the config file that this UML binary was generated from.\n\n" | 
					
						
							|  |  |  | ); | 
					
						
							|  |  |  | 
 |