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