#define BB_INSMOD
#define BB_KILL
#define BB_KILLALL
-#define BB_KLOGD
#define BB_LENGTH
#define BB_LN
#define BB_LOADACM
#define BB_LS
#define BB_LSMOD
#define BB_MAKEDEVS
-//#define BB_MD5SUM
+#define BB_MD5SUM
#define BB_MKDIR
#define BB_MKFIFO
#define BB_MKFS_MINIX
#define BB_FEATURE_LS_RECURSIVE
//
// Change ping implementation -- simplified, featureless, but really small.
-//#define BB_SIMPLE_PING
+//#define BB_FEATURE_SIMPLE_PING
//
// Make init use a simplified /etc/inittab file (recommended).
#define BB_FEATURE_USE_INITTAB
//Make sure nothing is printed to the console on boot
#define BB_FEATURE_EXTRA_QUIET
//
+//Should syslogd also provide klogd support?
+#define BB_FEATURE_KLOGD
+//
//Simple tail implementation (2k vs 6k for the full one). Still
//provides 'tail -f' support -- but for only one file at a time.
#define BB_FEATURE_SIMPLE_TAIL
//Turn on extra fbset options
//#define BB_FEATURE_FBSET_FANCY
//
+//Turn on fbset readmode support
+//#define BB_FEATURE_FBSET_READMODE
+//
// You must enable one or both of these features
// Support installing modules from pre 2.1 kernels
//#define BB_FEATURE_INSMOD_OLD_KERNEL
static int readmode(struct fb_var_screeninfo *base, const char *fn,
const char *mode)
{
-#ifdef BB_FBSET_READMODE
+#ifdef BB_FEATURE_FBSET_READMODE
FILE *f;
char buf[256];
char *p = buf;
/* vi: set sw=4 ts=4: */
/*
- * $Id: ping.c,v 1.17 2000/06/19 18:51:53 andersen Exp $
+ * $Id: ping.c,v 1.18 2000/07/06 23:10:29 andersen Exp $
* Mini ping implementation for busybox
*
* Copyright (C) 1999 by Randolph Chung <tausq@debian.org>
}
/* simple version */
-#ifdef BB_SIMPLE_PING
+#ifdef BB_FEATURE_SIMPLE_PING
static const char *ping_usage = "ping host\n"
#ifndef BB_FEATURE_TRIVIAL_HELP
"\nSend ICMP ECHO_REQUEST packets to network hosts\n"
exit(TRUE);
}
-#else /* ! BB_SIMPLE_PING */
+#else /* ! BB_FEATURE_SIMPLE_PING */
/* full(er) version */
static const char *ping_usage = "ping [OPTION]... host\n"
#ifndef BB_FEATURE_TRIVIAL_HELP
ping(*argv);
return(TRUE);
}
-#endif /* ! BB_SIMPLE_PING */
+#endif /* ! BB_FEATURE_SIMPLE_PING */
/*
* Copyright (c) 1989 The Regents of the University of California.
/* vi: set sw=4 ts=4: */
/*
- * $Id: ping.c,v 1.17 2000/06/19 18:51:53 andersen Exp $
+ * $Id: ping.c,v 1.18 2000/07/06 23:10:29 andersen Exp $
* Mini ping implementation for busybox
*
* Copyright (C) 1999 by Randolph Chung <tausq@debian.org>
}
/* simple version */
-#ifdef BB_SIMPLE_PING
+#ifdef BB_FEATURE_SIMPLE_PING
static const char *ping_usage = "ping host\n"
#ifndef BB_FEATURE_TRIVIAL_HELP
"\nSend ICMP ECHO_REQUEST packets to network hosts\n"
exit(TRUE);
}
-#else /* ! BB_SIMPLE_PING */
+#else /* ! BB_FEATURE_SIMPLE_PING */
/* full(er) version */
static const char *ping_usage = "ping [OPTION]... host\n"
#ifndef BB_FEATURE_TRIVIAL_HELP
ping(*argv);
return(TRUE);
}
-#endif /* ! BB_SIMPLE_PING */
+#endif /* ! BB_FEATURE_SIMPLE_PING */
/*
* Copyright (c) 1989 The Regents of the University of California.
"Options:\n"
"\t-m NUM\t\tInterval between MARK lines (default=20min, 0=off)\n"
"\t-n\t\tRun as a foreground process\n"
-#ifdef BB_KLOGD
+#ifdef BB_FEATURE_KLOGD
"\t-K\t\tDo not start up the klogd process\n"
#endif
"\t-O FILE\t\tUse an alternate log file (default=/var/log/messages)\n"
}
}
-#ifdef BB_KLOGD
+#ifdef BB_FEATURE_KLOGD
static void klogd_signal(int sig)
{
int pid, klogd_pid;
int doFork = TRUE;
-#ifdef BB_KLOGD
+#ifdef BB_FEATURE_KLOGD
int startKlogd = TRUE;
#endif
int stopDoingThat = FALSE;
case 'n':
doFork = FALSE;
break;
-#ifdef BB_KLOGD
+#ifdef BB_FEATURE_KLOGD
case 'K':
startKlogd = FALSE;
break;
umask(0);
-#ifdef BB_KLOGD
+#ifdef BB_FEATURE_KLOGD
/* Start up the klogd process */
if (startKlogd == TRUE) {
klogd_pid = fork();
"Options:\n"
"\t-m NUM\t\tInterval between MARK lines (default=20min, 0=off)\n"
"\t-n\t\tRun as a foreground process\n"
-#ifdef BB_KLOGD
+#ifdef BB_FEATURE_KLOGD
"\t-K\t\tDo not start up the klogd process\n"
#endif
"\t-O FILE\t\tUse an alternate log file (default=/var/log/messages)\n"
}
}
-#ifdef BB_KLOGD
+#ifdef BB_FEATURE_KLOGD
static void klogd_signal(int sig)
{
int pid, klogd_pid;
int doFork = TRUE;
-#ifdef BB_KLOGD
+#ifdef BB_FEATURE_KLOGD
int startKlogd = TRUE;
#endif
int stopDoingThat = FALSE;
case 'n':
doFork = FALSE;
break;
-#ifdef BB_KLOGD
+#ifdef BB_FEATURE_KLOGD
case 'K':
startKlogd = FALSE;
break;
umask(0);
-#ifdef BB_KLOGD
+#ifdef BB_FEATURE_KLOGD
/* Start up the klogd process */
if (startKlogd == TRUE) {
klogd_pid = fork();
static int readmode(struct fb_var_screeninfo *base, const char *fn,
const char *mode)
{
-#ifdef BB_FBSET_READMODE
+#ifdef BB_FEATURE_FBSET_READMODE
FILE *f;
char buf[256];
char *p = buf;