2005-04-16 18:20:36 -04: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 18:23:40 -04:00
|
|
|
static __initdata const char *config[] = {
|
|
|
|
"CONFIG"
|
|
|
|
};
|
2005-04-16 18:20:36 -04:00
|
|
|
|
|
|
|
static int __init print_config(char *line, int *add)
|
|
|
|
{
|
2009-03-31 18:23:40 -04:00
|
|
|
int i;
|
|
|
|
for (i = 0; i < sizeof(config)/sizeof(config[0]); i++)
|
|
|
|
printf("%s", config[i]);
|
2005-04-16 18:20:36 -04:00
|
|
|
exit(0);
|
|
|
|
}
|
|
|
|
|
|
|
|
__uml_setup("--showconfig", print_config,
|
|
|
|
"--showconfig\n"
|
|
|
|
" Prints the config file that this UML binary was generated from.\n\n"
|
|
|
|
);
|
|
|
|
|