Turned some stuff into features that really are features, not apps.
-Erik
This commit is contained in:
parent
67536ffa43
commit
03f4c27bd6
@ -44,7 +44,6 @@
|
|||||||
#define BB_INSMOD
|
#define BB_INSMOD
|
||||||
#define BB_KILL
|
#define BB_KILL
|
||||||
#define BB_KILLALL
|
#define BB_KILLALL
|
||||||
#define BB_KLOGD
|
|
||||||
#define BB_LENGTH
|
#define BB_LENGTH
|
||||||
#define BB_LN
|
#define BB_LN
|
||||||
#define BB_LOADACM
|
#define BB_LOADACM
|
||||||
@ -55,7 +54,7 @@
|
|||||||
#define BB_LS
|
#define BB_LS
|
||||||
#define BB_LSMOD
|
#define BB_LSMOD
|
||||||
#define BB_MAKEDEVS
|
#define BB_MAKEDEVS
|
||||||
//#define BB_MD5SUM
|
#define BB_MD5SUM
|
||||||
#define BB_MKDIR
|
#define BB_MKDIR
|
||||||
#define BB_MKFIFO
|
#define BB_MKFIFO
|
||||||
#define BB_MKFS_MINIX
|
#define BB_MKFS_MINIX
|
||||||
@ -159,7 +158,7 @@
|
|||||||
#define BB_FEATURE_LS_RECURSIVE
|
#define BB_FEATURE_LS_RECURSIVE
|
||||||
//
|
//
|
||||||
// Change ping implementation -- simplified, featureless, but really small.
|
// 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).
|
// Make init use a simplified /etc/inittab file (recommended).
|
||||||
#define BB_FEATURE_USE_INITTAB
|
#define BB_FEATURE_USE_INITTAB
|
||||||
@ -178,6 +177,9 @@
|
|||||||
//Make sure nothing is printed to the console on boot
|
//Make sure nothing is printed to the console on boot
|
||||||
#define BB_FEATURE_EXTRA_QUIET
|
#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
|
//Simple tail implementation (2k vs 6k for the full one). Still
|
||||||
//provides 'tail -f' support -- but for only one file at a time.
|
//provides 'tail -f' support -- but for only one file at a time.
|
||||||
#define BB_FEATURE_SIMPLE_TAIL
|
#define BB_FEATURE_SIMPLE_TAIL
|
||||||
@ -220,6 +222,9 @@
|
|||||||
//Turn on extra fbset options
|
//Turn on extra fbset options
|
||||||
//#define BB_FEATURE_FBSET_FANCY
|
//#define BB_FEATURE_FBSET_FANCY
|
||||||
//
|
//
|
||||||
|
//Turn on fbset readmode support
|
||||||
|
//#define BB_FEATURE_FBSET_READMODE
|
||||||
|
//
|
||||||
// You must enable one or both of these features
|
// You must enable one or both of these features
|
||||||
// Support installing modules from pre 2.1 kernels
|
// Support installing modules from pre 2.1 kernels
|
||||||
//#define BB_FEATURE_INSMOD_OLD_KERNEL
|
//#define BB_FEATURE_INSMOD_OLD_KERNEL
|
||||||
|
2
fbset.c
2
fbset.c
@ -140,7 +140,7 @@ struct cmdoptions_t {
|
|||||||
static int readmode(struct fb_var_screeninfo *base, const char *fn,
|
static int readmode(struct fb_var_screeninfo *base, const char *fn,
|
||||||
const char *mode)
|
const char *mode)
|
||||||
{
|
{
|
||||||
#ifdef BB_FBSET_READMODE
|
#ifdef BB_FEATURE_FBSET_READMODE
|
||||||
FILE *f;
|
FILE *f;
|
||||||
char buf[256];
|
char buf[256];
|
||||||
char *p = buf;
|
char *p = buf;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/* vi: set sw=4 ts=4: */
|
/* 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
|
* Mini ping implementation for busybox
|
||||||
*
|
*
|
||||||
* Copyright (C) 1999 by Randolph Chung <tausq@debian.org>
|
* Copyright (C) 1999 by Randolph Chung <tausq@debian.org>
|
||||||
@ -173,7 +173,7 @@ static int in_cksum(unsigned short *buf, int sz)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* simple version */
|
/* simple version */
|
||||||
#ifdef BB_SIMPLE_PING
|
#ifdef BB_FEATURE_SIMPLE_PING
|
||||||
static const char *ping_usage = "ping host\n"
|
static const char *ping_usage = "ping host\n"
|
||||||
#ifndef BB_FEATURE_TRIVIAL_HELP
|
#ifndef BB_FEATURE_TRIVIAL_HELP
|
||||||
"\nSend ICMP ECHO_REQUEST packets to network hosts\n"
|
"\nSend ICMP ECHO_REQUEST packets to network hosts\n"
|
||||||
@ -265,7 +265,7 @@ extern int ping_main(int argc, char **argv)
|
|||||||
exit(TRUE);
|
exit(TRUE);
|
||||||
}
|
}
|
||||||
|
|
||||||
#else /* ! BB_SIMPLE_PING */
|
#else /* ! BB_FEATURE_SIMPLE_PING */
|
||||||
/* full(er) version */
|
/* full(er) version */
|
||||||
static const char *ping_usage = "ping [OPTION]... host\n"
|
static const char *ping_usage = "ping [OPTION]... host\n"
|
||||||
#ifndef BB_FEATURE_TRIVIAL_HELP
|
#ifndef BB_FEATURE_TRIVIAL_HELP
|
||||||
@ -561,7 +561,7 @@ extern int ping_main(int argc, char **argv)
|
|||||||
ping(*argv);
|
ping(*argv);
|
||||||
return(TRUE);
|
return(TRUE);
|
||||||
}
|
}
|
||||||
#endif /* ! BB_SIMPLE_PING */
|
#endif /* ! BB_FEATURE_SIMPLE_PING */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1989 The Regents of the University of California.
|
* Copyright (c) 1989 The Regents of the University of California.
|
||||||
|
8
ping.c
8
ping.c
@ -1,6 +1,6 @@
|
|||||||
/* vi: set sw=4 ts=4: */
|
/* 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
|
* Mini ping implementation for busybox
|
||||||
*
|
*
|
||||||
* Copyright (C) 1999 by Randolph Chung <tausq@debian.org>
|
* Copyright (C) 1999 by Randolph Chung <tausq@debian.org>
|
||||||
@ -173,7 +173,7 @@ static int in_cksum(unsigned short *buf, int sz)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* simple version */
|
/* simple version */
|
||||||
#ifdef BB_SIMPLE_PING
|
#ifdef BB_FEATURE_SIMPLE_PING
|
||||||
static const char *ping_usage = "ping host\n"
|
static const char *ping_usage = "ping host\n"
|
||||||
#ifndef BB_FEATURE_TRIVIAL_HELP
|
#ifndef BB_FEATURE_TRIVIAL_HELP
|
||||||
"\nSend ICMP ECHO_REQUEST packets to network hosts\n"
|
"\nSend ICMP ECHO_REQUEST packets to network hosts\n"
|
||||||
@ -265,7 +265,7 @@ extern int ping_main(int argc, char **argv)
|
|||||||
exit(TRUE);
|
exit(TRUE);
|
||||||
}
|
}
|
||||||
|
|
||||||
#else /* ! BB_SIMPLE_PING */
|
#else /* ! BB_FEATURE_SIMPLE_PING */
|
||||||
/* full(er) version */
|
/* full(er) version */
|
||||||
static const char *ping_usage = "ping [OPTION]... host\n"
|
static const char *ping_usage = "ping [OPTION]... host\n"
|
||||||
#ifndef BB_FEATURE_TRIVIAL_HELP
|
#ifndef BB_FEATURE_TRIVIAL_HELP
|
||||||
@ -561,7 +561,7 @@ extern int ping_main(int argc, char **argv)
|
|||||||
ping(*argv);
|
ping(*argv);
|
||||||
return(TRUE);
|
return(TRUE);
|
||||||
}
|
}
|
||||||
#endif /* ! BB_SIMPLE_PING */
|
#endif /* ! BB_FEATURE_SIMPLE_PING */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1989 The Regents of the University of California.
|
* Copyright (c) 1989 The Regents of the University of California.
|
||||||
|
@ -85,7 +85,7 @@ static const char syslogd_usage[] =
|
|||||||
"Options:\n"
|
"Options:\n"
|
||||||
"\t-m NUM\t\tInterval between MARK lines (default=20min, 0=off)\n"
|
"\t-m NUM\t\tInterval between MARK lines (default=20min, 0=off)\n"
|
||||||
"\t-n\t\tRun as a foreground process\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"
|
"\t-K\t\tDo not start up the klogd process\n"
|
||||||
#endif
|
#endif
|
||||||
"\t-O FILE\t\tUse an alternate log file (default=/var/log/messages)\n"
|
"\t-O FILE\t\tUse an alternate log file (default=/var/log/messages)\n"
|
||||||
@ -316,7 +316,7 @@ static void doSyslogd (void)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef BB_KLOGD
|
#ifdef BB_FEATURE_KLOGD
|
||||||
|
|
||||||
static void klogd_signal(int sig)
|
static void klogd_signal(int sig)
|
||||||
{
|
{
|
||||||
@ -407,7 +407,7 @@ extern int syslogd_main(int argc, char **argv)
|
|||||||
int pid, klogd_pid;
|
int pid, klogd_pid;
|
||||||
int doFork = TRUE;
|
int doFork = TRUE;
|
||||||
|
|
||||||
#ifdef BB_KLOGD
|
#ifdef BB_FEATURE_KLOGD
|
||||||
int startKlogd = TRUE;
|
int startKlogd = TRUE;
|
||||||
#endif
|
#endif
|
||||||
int stopDoingThat = FALSE;
|
int stopDoingThat = FALSE;
|
||||||
@ -427,7 +427,7 @@ extern int syslogd_main(int argc, char **argv)
|
|||||||
case 'n':
|
case 'n':
|
||||||
doFork = FALSE;
|
doFork = FALSE;
|
||||||
break;
|
break;
|
||||||
#ifdef BB_KLOGD
|
#ifdef BB_FEATURE_KLOGD
|
||||||
case 'K':
|
case 'K':
|
||||||
startKlogd = FALSE;
|
startKlogd = FALSE;
|
||||||
break;
|
break;
|
||||||
@ -456,7 +456,7 @@ extern int syslogd_main(int argc, char **argv)
|
|||||||
|
|
||||||
umask(0);
|
umask(0);
|
||||||
|
|
||||||
#ifdef BB_KLOGD
|
#ifdef BB_FEATURE_KLOGD
|
||||||
/* Start up the klogd process */
|
/* Start up the klogd process */
|
||||||
if (startKlogd == TRUE) {
|
if (startKlogd == TRUE) {
|
||||||
klogd_pid = fork();
|
klogd_pid = fork();
|
||||||
|
10
syslogd.c
10
syslogd.c
@ -85,7 +85,7 @@ static const char syslogd_usage[] =
|
|||||||
"Options:\n"
|
"Options:\n"
|
||||||
"\t-m NUM\t\tInterval between MARK lines (default=20min, 0=off)\n"
|
"\t-m NUM\t\tInterval between MARK lines (default=20min, 0=off)\n"
|
||||||
"\t-n\t\tRun as a foreground process\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"
|
"\t-K\t\tDo not start up the klogd process\n"
|
||||||
#endif
|
#endif
|
||||||
"\t-O FILE\t\tUse an alternate log file (default=/var/log/messages)\n"
|
"\t-O FILE\t\tUse an alternate log file (default=/var/log/messages)\n"
|
||||||
@ -316,7 +316,7 @@ static void doSyslogd (void)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef BB_KLOGD
|
#ifdef BB_FEATURE_KLOGD
|
||||||
|
|
||||||
static void klogd_signal(int sig)
|
static void klogd_signal(int sig)
|
||||||
{
|
{
|
||||||
@ -407,7 +407,7 @@ extern int syslogd_main(int argc, char **argv)
|
|||||||
int pid, klogd_pid;
|
int pid, klogd_pid;
|
||||||
int doFork = TRUE;
|
int doFork = TRUE;
|
||||||
|
|
||||||
#ifdef BB_KLOGD
|
#ifdef BB_FEATURE_KLOGD
|
||||||
int startKlogd = TRUE;
|
int startKlogd = TRUE;
|
||||||
#endif
|
#endif
|
||||||
int stopDoingThat = FALSE;
|
int stopDoingThat = FALSE;
|
||||||
@ -427,7 +427,7 @@ extern int syslogd_main(int argc, char **argv)
|
|||||||
case 'n':
|
case 'n':
|
||||||
doFork = FALSE;
|
doFork = FALSE;
|
||||||
break;
|
break;
|
||||||
#ifdef BB_KLOGD
|
#ifdef BB_FEATURE_KLOGD
|
||||||
case 'K':
|
case 'K':
|
||||||
startKlogd = FALSE;
|
startKlogd = FALSE;
|
||||||
break;
|
break;
|
||||||
@ -456,7 +456,7 @@ extern int syslogd_main(int argc, char **argv)
|
|||||||
|
|
||||||
umask(0);
|
umask(0);
|
||||||
|
|
||||||
#ifdef BB_KLOGD
|
#ifdef BB_FEATURE_KLOGD
|
||||||
/* Start up the klogd process */
|
/* Start up the klogd process */
|
||||||
if (startKlogd == TRUE) {
|
if (startKlogd == TRUE) {
|
||||||
klogd_pid = fork();
|
klogd_pid = fork();
|
||||||
|
@ -140,7 +140,7 @@ struct cmdoptions_t {
|
|||||||
static int readmode(struct fb_var_screeninfo *base, const char *fn,
|
static int readmode(struct fb_var_screeninfo *base, const char *fn,
|
||||||
const char *mode)
|
const char *mode)
|
||||||
{
|
{
|
||||||
#ifdef BB_FBSET_READMODE
|
#ifdef BB_FEATURE_FBSET_READMODE
|
||||||
FILE *f;
|
FILE *f;
|
||||||
char buf[256];
|
char buf[256];
|
||||||
char *p = buf;
|
char *p = buf;
|
||||||
|
Loading…
Reference in New Issue
Block a user