Eric Andersen
c94e89d81f
Do not depend on PATH or getopt arg reordering
2002-01-06 01:08:28 +00:00
Matt Kraai
1f0c43668a
Remove == TRUE' tests and convert
!= TRUE' and `== FALSE' tests to use !.
2001-12-20 23:13:26 +00:00
Eric Andersen
730f826f25
Add in a new restart init target, triggered by SIGHUP. Patch from
...
Russ Dill, with adjustments by me.
-Erik
2001-12-17 23:13:08 +00:00
Eric Andersen
ed8a9be287
Patch from Dan Langlois <dan@somanetworks.com> Support SIGSTOP/SIGCONT
...
for wierd situations when people want init to actualy stop doing
anything for a while...
2001-11-30 19:10:58 +00:00
Eric Andersen
2480e3a30a
Fix dangling comma
2001-11-21 09:05:31 +00:00
Eric Andersen
f435a918fa
S390 wierdness
2001-11-20 05:42:57 +00:00
Eric Andersen
fedce06b7f
Hide some ifdefs to make it more readible
2001-11-17 07:27:14 +00:00
Eric Andersen
813d88cf78
As Aaron Lehmann just pointed out, I forgot a line...
2001-10-28 22:49:48 +00:00
Eric Andersen
72f9a4277f
Add in some (theoretical) uClinux support. Some init cleanups
2001-10-28 05:12:20 +00:00
Eric Andersen
bdfd0d78bc
Major rework of the directory structure and the entire build system.
...
-Erik
2001-10-24 05:00:29 +00:00
Eric Andersen
74400ccfd0
Scrub up some function prototypes.
...
-Erik
2001-10-18 04:11:39 +00:00
Eric Andersen
1644db9a2b
Two patches from Magick <magick@linux-fan.com>:
...
1st makes init smaller, and fixes a bug with AskFirst. Reading from
/dev/null gives EOF.
2nd makes init run the command's in the order of inittab, as in
FIFO instead of LIFO.
2001-09-05 20:18:15 +00:00
Matt Kraai
439e3df653
Add support for devfs device names.
2001-07-23 14:52:08 +00:00
Eric Andersen
8d79ce8320
Some patches to make dietlibc work...
2001-07-22 23:00:15 +00:00
Matt Kraai
7bd773c9fe
Only use a login shell when it will run on a console.
2001-06-12 20:55:02 +00:00
Matt Kraai
67a4640333
Loop forever instead of exiting.
2001-06-03 05:55:52 +00:00
Eric Andersen
77d9268892
Patch from larry to fix some grammar errors.
2001-05-23 20:32:09 +00:00
Matt Kraai
1844770fec
Changed snprintf copies to use strncpy at the suggestion of Aaron Lehmann.
2001-05-18 21:24:58 +00:00
Eric Andersen
04095e58fb
Move messages.c to libbb. Make each string in messages.c be its own .o file.
...
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-25 05:39:18 +00:00
Eric Andersen
d8862928c2
A patch from Marc Karasek and Kanoj (kernel serial.c maintainer)
...
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-23 15:14:11 +00:00
Matt Kraai
8fc364ebd5
Fix comment.
2001-04-12 20:12:16 +00:00
Eric Andersen
2f2da90fd4
"I will always compile before I commit" x 100
2001-04-09 23:54:15 +00:00
Eric Andersen
b6b519b416
Update how we detect if libc5 is in use.
...
-Erik
2001-04-09 23:52:18 +00:00
Eric Andersen
e76c3b08e1
A number of cleanups. Now compiles with libc5, glibc, and uClibc. Fix a few
...
shadowed variables. Move (almost) all syscalls to libbb/syscalls.c, so I can
handle them sanely and all at once.
-Erik
2001-04-05 03:14:39 +00:00
Eric Andersen
c97ec34370
A patch from Matt Kraai that adds a new 'shutdown' action to busybox init. Now
...
you can specify an arbitrary behavior for 'ctrlaltdel' without that behavior
needing to be a reboot.
2001-04-03 18:01:51 +00:00
Eric Andersen
1ca20a7747
A nice patch from Larry Doolittle that adds -Wshadow and
...
cleans up most of the now-revealed problems.
2001-03-21 07:34:27 +00:00
Eric Andersen
7ef1a5beb2
Fix up command line munging in init. Postpone the askfirst thing till
...
a bit later in run().
2001-03-20 17:39:08 +00:00
Eric Andersen
7f1978570f
A patch from Andreas Neuhaus to be especially careful to not dup
...
any env variables when spawning child processes.
2001-03-16 01:14:04 +00:00
Eric Andersen
a4edd0e946
A better fix. Read nextPtr before mem gets freed.
...
-Erik
2001-03-15 21:04:18 +00:00
Eric Andersen
0d4e51d390
Prevent init from potentially using already freed memory when
...
deleting an initAction, fixing a bug pointed out by Andreas Neuhaus
-Erik
2001-03-15 19:18:21 +00:00
Eric Andersen
53f5061c7e
Fix init so that checking for terminal devices is delayed until the
...
devices are actually used, thereby allowing devfsd based systems to
work. This should fix bug #1133
-Erik
2001-03-14 09:01:11 +00:00
Eric Andersen
3e6ff9017f
A cleanup patch from Jeff Garzik to static-ify a number of
...
namespace polluting things that really should be static.
2001-03-09 21:24:12 +00:00
Eric Andersen
452fd33ffa
Patch from Vladimir to make sure PATH is set correctly.
2001-03-04 06:47:33 +00:00
Eric Andersen
41492d6c23
I should be more careful...
2001-02-23 00:05:56 +00:00
Eric Andersen
544891dd26
Add in kent robotti's updated dos2unix.c
2001-02-22 23:37:30 +00:00
Eric Andersen
dbcd8ce464
Make init compile when DEBUG_INIT is enabled
...
-Erik
2001-02-22 04:55:33 +00:00
Eric Andersen
8fc300976f
Revert my change to do extra termType checking. That is done elsewhere.
...
Silly me.
-Erik
2001-02-22 00:50:20 +00:00
Eric Andersen
477aedd77f
Commit a patch from Erik Gustavsson <cyrano@algonet.se>, to allow
...
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-20 18:01:50 +00:00
Eric Andersen
cbe31dace5
It turns out that DODMALLOC was broken when I reorganized busybox.h
...
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-20 06:14:08 +00:00
Eric Andersen
f6a7227fd6
Throw out the obsolete INIT_CHROOT junk
2001-02-17 00:40:32 +00:00
Eric Andersen
67991cf824
This patch, put together by Manuel Novoa III, is a merge of work
...
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-14 21:23:06 +00:00
Eric Andersen
af4ac77d9d
Apply a patch from Larry Doolittle to add "-all" and "-none" switches
...
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-02-01 22:43:49 +00:00
Eric Andersen
53cfb7e231
Patch from Vladimir N. Oleynik to simplify/cleanup a few things in init.c
2001-01-31 17:29:47 +00:00
Eric Andersen
ed3ef50c23
Fix header file usage -- there were many unnecessary header files included in
...
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-27 08:24:39 +00:00
Eric Andersen
3862423884
Add in Larry's CUSTOMIZED_BANNER patchlet, and let folks know that
...
BB_FEATURE_INIT_CHROOT needs to be rewritten to use pivot_root.
-Erik
2001-01-25 00:04:16 +00:00
Mark Whitley
59ab025363
#define -> static const int. Also got rid of some big static buffers.
2001-01-23 22:30:04 +00:00
Eric Andersen
21125543e1
A couple of updates to fix some minor cross compiling issues
2000-12-13 16:41:29 +00:00
Eric Andersen
e3a48d865a
Cleanup for proper compilation with uClibc.
2000-12-12 23:22:35 +00:00
Mark Whitley
f57c944e09
Changed names of functions in utility.c and all affected files, to make
...
compliant with the style guide. Everybody rebuild your tags file!
2000-12-07 19:56:48 +00:00
Eric Andersen
bc5941a540
Close but #1071...
2000-12-06 23:17:37 +00:00
Eric Andersen
3570a34de4
Renamed "internal.h" to the more sensible "busybox.h".
...
-Erik
2000-09-25 21:45:58 +00:00
Eric Andersen
f34aa4c378
Hard code the name of init.
2000-09-21 02:32:11 +00:00
Pavel Roskin
33bee33af0
Don't suppress output of umount and swapoff - it is both unwise
...
and incompatible with lash that doesn't support >&1 yet.
2000-09-15 01:02:50 +00:00
Pavel Roskin
cbe05e45db
For "askfirst" don't just read one char from stdin,
...
read the whole line using getc(), so that everything before Enter
gets discarded.
2000-09-14 22:47:29 +00:00
Eric Andersen
7e3bf6e339
Add in a patch from robotti@metconnect.com and Chip Rosenthal to make
...
init do login shell stuff.
-Erik
2000-09-14 22:01:31 +00:00
Eric Andersen
fb6a50820c
Ensure forked processes always are on a controlling tty, so the
...
^C can be properly sent to /dev/console.
-Erik
2000-09-13 16:15:29 +00:00
Eric Andersen
cbb61c78ae
Make init handle current 2.4.x sysinfo behavior
...
-Erik
2000-09-10 16:13:41 +00:00
Eric Andersen
3639c5d950
Set environment variable to make ash happy. ash is a frequent enough
...
target....
2000-09-05 17:57:52 +00:00
Pavel Roskin
9c5fcc3408
New message added to messages.c: full_version
...
Used where possible
2000-07-17 23:45:12 +00:00
Pavel Roskin
9027bcf2f4
Fixed a warning about missing initializer
2000-07-14 15:44:25 +00:00
Matt Kraai
e58771e73c
Use global applet_name instead of local versions.
2000-07-12 15:38:49 +00:00
Eric Andersen
be909b1cd5
Forgot to commit these cleanups it seems.
...
-Erik
2000-07-11 17:52:22 +00:00
Eric Andersen
9b2297a34e
Remove yet more kernel header dependancies.
...
-Erik
2000-07-10 20:08:44 +00:00
Eric Andersen
3849f9bfcc
Remove the problematic CTRLCHAR macro.
...
-Erik
2000-07-10 19:56:47 +00:00
Eric Andersen
bd22ed8067
Update files to reduce dependance on kernel version...
...
-Erik
2000-07-08 18:55:24 +00:00
Eric Andersen
4c95a28461
Fix for bug #1003 -- BusyBox should now poweroff when asked to
...
do so... Fix thanks to Matt Kraai <kraai@alumni.carnegiemellon.edu>
-Erik
2000-07-07 19:30:28 +00:00
Eric Andersen
02bc25be56
Fixed backspace and delete so they work properly again -- broken
...
since 0.44.
-Erik
2000-07-06 21:29:32 +00:00
Eric Andersen
a5dbb39dac
Change order.
...
-Erik
2000-07-06 19:11:34 +00:00
Eric Andersen
1e03add675
a few minor cleanups.
...
-Erik
2000-07-06 09:56:35 +00:00
Eric Andersen
b02c54ebee
* Fix to init.c from Stuart Menefy <Stuart.Menefy@st.com> so that
...
it always sets the controlling terminal before running any programs
-Erik
2000-07-04 19:41:23 +00:00
Eric Andersen
a44790f539
Better cross libc support.
...
-Erik
2000-06-28 20:11:28 +00:00
Eric Andersen
10dc9d4d17
Updates to handle Linux 2.4.0 kernels (kludged around the "none" entries in
...
/proc/mounts, added a hack to make sysinfo work with both old and new kernels).
-Erik
2000-06-26 10:45:52 +00:00
Eric Andersen
a15cd0be34
Make syslogd.c, init.c, and update.c compile error/warning free under both libc5 and libc6.
...
-Erik
2000-06-19 18:14:20 +00:00
Eric Andersen
b5966368d7
Minor doc fix. Added several bugs to the todo list. Fixed the way init
...
scans /etc/inittab entries so that commands can contain ":"s.
-Erik
2000-05-31 20:04:38 +00:00
Erik Andersen
330fd2b576
More libc portability updates, add in the website (which has not been
...
archived previously). Wrote 'which' during the meeting today.
-Erik
2000-05-19 05:35:19 +00:00
Erik Andersen
4f3f757d56
Latest and greatest. Some effort at libc5 (aiming towards newlib)
...
compatability.
-Erik
2000-04-28 00:18:56 +00:00
Erik Andersen
1d1d95051a
More Doc updates. cmdedit and more termio fixes.
2000-04-21 01:26:49 +00:00
Erik Andersen
61677feff7
Upates to include copyright 2000 to everything
...
-Erik
2000-04-13 01:18:56 +00:00
Erik Andersen
93d6513d93
Some more minor updates to better use some gcc attributes.
...
-Erik
2000-04-06 08:06:36 +00:00
Erik Andersen
183da4ade1
Minor structural change to allow core dumping(or not) from init
...
-Erik
2000-04-04 18:36:37 +00:00
Erik Andersen
983b51b17b
minor changes to mount/umount to support-by-ignoring the "-v" flag.
...
Added optional core dumping as a feature for init, and include a rewrite
of syslogd so that it now supports multiple concurrent connections.
-Erik
2000-04-04 18:14:25 +00:00
Erik Andersen
298854f029
My latest ramblings.
...
-Erik
2000-03-23 01:09:18 +00:00
Erik Andersen
42094cdad5
Fix bug in memory total checking.
...
-Erik
2000-03-20 21:34:52 +00:00
Erik Andersen
6c41c44898
Adjust the termio settings, and don't use octal since it
...
is impossible to read by mere mortals.
-Erik
2000-03-19 05:13:49 +00:00
Erik Andersen
2ac2fae728
Fix bugs related to finding PIDs.
...
-Erik
2000-03-07 23:32:17 +00:00
Erik Andersen
ea6b67de65
Add a #define to make init extra quiet on boot.
...
-Erik
2000-03-07 07:47:10 +00:00
Erik Andersen
029011b9ee
A few updates (including the cp fix the Craig has been looking for)
...
-Erik
2000-03-04 21:19:32 +00:00
Erik Andersen
a51ecdd9e4
Minor tweak to argv[0] handling for linuxrc
...
-Erik
2000-02-24 18:09:58 +00:00
Erik Andersen
d07ee46919
Removed proc dependancies for init and free (which maintaining exactly
...
the same functionality). /proc takes up 90k of kernel space, so it is
nice to avoid using it at all costs. The only places where it is depended
on is for cetain optional mount/umount features, and for ps and lsmod.
-Erik
2000-02-21 21:26:32 +00:00
Erik Andersen
fa4718efcf
Minor update for handling TERM with serial consoles.
...
-Erik
2000-02-21 19:25:12 +00:00
Erik Andersen
e272915e1f
Some updates for the day,
...
-Erik
2000-02-18 21:34:17 +00:00
Erik Andersen
fb1793f03c
Fix stupid typos -- thanks to Taketoshi Sano <kgh12351@nifty.ne.jp>
...
for noticing these bugs.
-Erik
2000-02-09 16:37:08 +00:00
Erik Andersen
07f5604046
Fix a possible /linuxrc crash.
...
-Erik
2000-02-09 06:05:01 +00:00
Erik Andersen
e132f4b09e
Fixed the init problem where it wouldn't unmount filesystems
...
on reboot. Also fixed swapoff -a so it works.
-Erik
2000-02-09 04:16:43 +00:00
Erik Andersen
e49d5ecbbe
Some formatting updates (ran the code through indent)
...
-Erik
2000-02-08 19:58:47 +00:00
Erik Andersen
31cf8e0056
device_open is common code -- moved into utility.c
...
-Erik
2000-02-07 20:31:19 +00:00
Erik Andersen
fac10d7c59
A few minor updates. ;-)
...
Seriously though, read the Changelog for busybox 0.42,
which this is about to become...
-Erik
2000-02-07 05:29:42 +00:00
Erik Andersen
04e97024e7
Clear up some ambiguity with old style assignments.
...
-Erik
2000-01-29 07:06:24 +00:00
Erik Andersen
a6d0dbc86f
Minor change. init now uses dup2.
...
-Erik
2000-01-29 06:29:32 +00:00
Erik Andersen
ccc7488615
Fixed ls formatting for 8 char user names.
...
-Erik
2000-01-27 02:40:21 +00:00