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