2006-08-04 21:05:33 +00:00
|
|
|
/* Minimal wrapper to build an individual busybox applet.
|
|
|
|
*
|
|
|
|
* Copyright 2005 Rob Landley <rob@landley.net
|
2006-09-17 16:28:10 +00:00
|
|
|
*
|
2006-09-22 02:52:41 +00:00
|
|
|
* Licensed under GPL version 2, see file LICENSE in this tarball for details
|
2006-08-04 21:05:33 +00:00
|
|
|
*/
|
|
|
|
|
2006-10-03 21:00:43 +00:00
|
|
|
const char *applet_name;
|
2006-08-04 21:05:33 +00:00
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
2006-10-19 22:17:44 +00:00
|
|
|
//Ok to remove? #include "bb_config.h"
|
2006-08-04 21:05:33 +00:00
|
|
|
#include "usage.h"
|
|
|
|
|
|
|
|
int main(int argc, char *argv[])
|
|
|
|
{
|
2006-10-03 21:00:43 +00:00
|
|
|
applet_name=argv[0];
|
2006-08-04 21:05:33 +00:00
|
|
|
|
|
|
|
return APPLET_main(argc,argv);
|
|
|
|
}
|
|
|
|
|
|
|
|
void bb_show_usage(void)
|
|
|
|
{
|
|
|
|
printf(APPLET_full_usage "\n");
|
|
|
|
|
|
|
|
exit(1);
|
|
|
|
}
|