[BusyBox] vanity banner
Larry Doolittle
ldoolitt at recycle.lbl.gov
Wed Jan 24 23:37:48 UTC 2001
I append a trivial patch to init.c that provides a hook for people
to add a vanity banner to their 'login screen'. Here is the
include file that I have on my system, that also tells
how it is made:
--- cut here ---
/* courtesy figlet22, http://st-www.cs.uiuc.edu/users/chai/figlet.html
* figlet -f slant " Berkeley Linux" | sed -e 's.\\.\\\\.g' -e 's/^/"/' -e 's/$/\\n"/'
*/
" ____ __ __ __ _ \n"
" / __ )___ _____/ /_____ / /__ __ __ / / (_)___ __ ___ __\n"
" / __ / _ \\/ ___/ //_/ _ \\/ / _ \\/ / / / / / / / __ \\/ / / / |/_/\n"
" / /_/ / __/ / / ,< / __/ / __/ /_/ / / /___/ / / / / /_/ /> < \n"
" /_____/\\___/_/ /_/|_|\\___/_/\\___/\\__, / /_____/_/_/ /_/\\__,_/_/|_| \n"
" /____/ \n"
"\n"
--- cut here ---
I engage this by adding
CFLAGS_EXTRA=-DCUSTOMIZED_BANNER=\"banner.h\"
to the Makefile.
BTW, why did CFLAGS_EXTRA get chopped out of the latest CVS Makefile?
- Larry Doolittle <LRDoolittle at lbl.gov>
--- /home/ldoolitt/cvs/busybox/init.c Wed Jan 24 09:03:57 2001
+++ init.c Wed Jan 24 12:48:10 2001
@@ -399,7 +399,9 @@
char *cmd[255], *cmdpath;
char buf[255];
static const char press_enter[] =
-
+#ifdef CUSTOMIZED_BANNER
+#include CUSTOMIZED_BANNER
+#endif
"\nPlease press Enter to activate this console. ";
char *environment[] = {
"HOME=/",
More information about the busybox
mailing list