summaryrefslogtreecommitdiff
path: root/init.c
AgeCommit message (Collapse)Author
2001-06-12Only use a login shell when it will run on a console.Matt Kraai
2001-06-03Loop forever instead of exiting.Matt Kraai
2001-05-23Patch from larry to fix some grammar errors.Eric Andersen
2001-05-18Changed snprintf copies to use strncpy at the suggestion of Aaron Lehmann.Matt Kraai
2001-04-25Move messages.c to libbb. Make each string in messages.c be its own .o file.Eric Andersen
This way, we can new get rid of all that tedious #define rubbish we used to need to enable specific messages. This way is enormously simpler, and as a bonus also ends up saving us 96 bytes. -Erik
2001-04-23A patch from Marc Karasek and Kanoj (kernel serial.c maintainer)Eric Andersen
so init will work on serial consoles with 2.4.3+ kernels, thanks to Fabrice Gautier <gautier@email.enst.fr> for finding this one. -Erik
2001-04-12Fix comment.Matt Kraai
2001-04-09"I will always compile before I commit" x 100Eric Andersen
2001-04-09Update how we detect if libc5 is in use.Eric Andersen
-Erik
2001-04-05A number of cleanups. Now compiles with libc5, glibc, and uClibc. Fix a fewEric Andersen
shadowed variables. Move (almost) all syscalls to libbb/syscalls.c, so I can handle them sanely and all at once. -Erik
2001-04-03A patch from Matt Kraai that adds a new 'shutdown' action to busybox init. NowEric Andersen
you can specify an arbitrary behavior for 'ctrlaltdel' without that behavior needing to be a reboot.
2001-03-21A nice patch from Larry Doolittle that adds -Wshadow andEric Andersen
cleans up most of the now-revealed problems.
2001-03-20Fix up command line munging in init. Postpone the askfirst thing tillEric Andersen
a bit later in run().
2001-03-16A patch from Andreas Neuhaus to be especially careful to not dupEric Andersen
any env variables when spawning child processes.
2001-03-15A better fix. Read nextPtr before mem gets freed.Eric Andersen
-Erik
2001-03-15Prevent init from potentially using already freed memory whenEric Andersen
deleting an initAction, fixing a bug pointed out by Andreas Neuhaus -Erik
2001-03-14Fix init so that checking for terminal devices is delayed until theEric Andersen
devices are actually used, thereby allowing devfsd based systems to work. This should fix bug #1133 -Erik
2001-03-09A cleanup patch from Jeff Garzik to static-ify a number ofEric Andersen
namespace polluting things that really should be static.
2001-03-04Patch from Vladimir to make sure PATH is set correctly.Eric Andersen
2001-02-23I should be more careful...Eric Andersen
2001-02-22Add in kent robotti's updated dos2unix.cEric Andersen
2001-02-22Make init compile when DEBUG_INIT is enabledEric Andersen
-Erik
2001-02-22Revert my change to do extra termType checking. That is done elsewhere.Eric Andersen
Silly me. -Erik
2001-02-20Commit a patch from Erik Gustavsson <cyrano@algonet.se>, to allowEric Andersen
environment variables set from the kernel command line to be inherited bu application programs. Slightly changed to special case handling of TERM, so that it has sane defaults when on a serial console. -Erik
2001-02-20It turns out that DODMALLOC was broken when I reorganized busybox.hEric Andersen
header file usage before the 0.49 release. To fix it, I had to move the '#include "busybox.h"' to the end of the list of #include files. -Erik
2001-02-17Throw out the obsolete INIT_CHROOT junkEric Andersen
2001-02-14This patch, put together by Manuel Novoa III, is a merge of workEric Andersen
done by Evin Robertson (bug#1105) and work from Manuel to make usage messages occupy less space and simplify how usage messages are displayed.
2001-02-01Apply a patch from Larry Doolittle to add "-all" and "-none" switchesEric Andersen
to multibuild.pl. I did a little formatting adjustments to make it _very_ obvious when things stop working. I also removed the USE_PROCFS config option -- just do the right thing when USE_DEVPS_PATCH is enabled. -Erik
2001-01-31Patch from Vladimir N. Oleynik to simplify/cleanup a few things in init.cEric Andersen
2001-01-27Fix header file usage -- there were many unnecessary header files included inEric Andersen
busybox.h which slowed compiles. I left only what was needed and then fixed up all the apps to include their own header files. I also fixed naming for pwd.h and grp.h functions. Tested to compile and run with libc5, glibc, and uClibc. -Erik
2001-01-25Add in Larry's CUSTOMIZED_BANNER patchlet, and let folks know thatEric Andersen
BB_FEATURE_INIT_CHROOT needs to be rewritten to use pivot_root. -Erik
2001-01-23#define -> static const int. Also got rid of some big static buffers.Mark Whitley
2000-12-13A couple of updates to fix some minor cross compiling issuesEric Andersen
2000-12-12Cleanup for proper compilation with uClibc.Eric Andersen
2000-12-07Changed names of functions in utility.c and all affected files, to makeMark Whitley
compliant with the style guide. Everybody rebuild your tags file!
2000-12-06Close but #1071...Eric Andersen
2000-09-25Renamed "internal.h" to the more sensible "busybox.h".Eric Andersen
-Erik
2000-09-21Hard code the name of init.Eric Andersen
2000-09-15Don't suppress output of umount and swapoff - it is both unwisePavel Roskin
and incompatible with lash that doesn't support >&1 yet.
2000-09-14For "askfirst" don't just read one char from stdin,Pavel Roskin
read the whole line using getc(), so that everything before Enter gets discarded.
2000-09-14Add in a patch from robotti@metconnect.com and Chip Rosenthal to makeEric Andersen
init do login shell stuff. -Erik
2000-09-13Ensure forked processes always are on a controlling tty, so theEric Andersen
^C can be properly sent to /dev/console. -Erik
2000-09-10Make init handle current 2.4.x sysinfo behaviorEric Andersen
-Erik
2000-09-05Set environment variable to make ash happy. ash is a frequent enoughEric Andersen
target....
2000-07-17New message added to messages.c: full_versionPavel Roskin
Used where possible
2000-07-14Fixed a warning about missing initializerPavel Roskin
2000-07-12Use global applet_name instead of local versions.Matt Kraai
2000-07-11Forgot to commit these cleanups it seems.Eric Andersen
-Erik
2000-07-10Remove yet more kernel header dependancies.Eric Andersen
-Erik
2000-07-10Remove the problematic CTRLCHAR macro.Eric Andersen
-Erik