summaryrefslogtreecommitdiff
path: root/i/pc104/initrd/conf/busybox/applets/individual.c
diff options
context:
space:
mode:
Diffstat (limited to 'i/pc104/initrd/conf/busybox/applets/individual.c')
-rw-r--r--i/pc104/initrd/conf/busybox/applets/individual.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/i/pc104/initrd/conf/busybox/applets/individual.c b/i/pc104/initrd/conf/busybox/applets/individual.c
new file mode 100644
index 0000000..0721683
--- /dev/null
+++ b/i/pc104/initrd/conf/busybox/applets/individual.c
@@ -0,0 +1,27 @@
+/* Minimal wrapper to build an individual busybox applet.
+ *
+ * Copyright 2005 Rob Landley <rob@landley.net
+ *
+ * Licensed under GPL version 2, see file LICENSE in this tarball for details
+ */
+
+const char *applet_name;
+
+#include <stdio.h>
+#include <stdlib.h>
+//Ok to remove? #include "bb_config.h"
+#include "usage.h"
+
+int main(int argc, char *argv[])
+{
+ applet_name=argv[0];
+
+ return APPLET_main(argc,argv);
+}
+
+void bb_show_usage(void)
+{
+ printf(APPLET_full_usage "\n");
+
+ exit(1);
+}