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