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
Matt Kraai
27a804246a
Centralize handling of --help.
2000-07-19 19:24:01 +00:00
Matt Kraai
2f46b664b7
Add usage messages for applets without them.
2000-07-19 18:01:00 +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
b610615be9
Updates to a number of apps to remove warnings/compile errors under libc5.
...
Tested under both libc5 and libc6 and all seems well with these fixes.
-Erik
2000-06-19 17:25:40 +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
825aead68b
Patch to make killall actually kill all PIDs with the specified name,
...
rather then busylooping trying to kill the first one until it dies.
Should be more efficient now, and will only send one signal to each
specified process.
-Erik
2000-04-07 06:00:07 +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
246cc6dddd
Wrote killall.
...
Adjusted mount, ps, utility.c, etc to handle my nifty new kernel
patches the allow busybox to run perfectly without /proc.
-Erik
2000-03-07 07:41:42 +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
Erik Andersen
5cbdd712f5
mount and umount could leak loop device allocations causing the system to
...
quickly run out. Also disable init's SIGHUP handler during shutdown.
-Erik
2000-01-26 20:06:48 +00:00
Erik Andersen
3fe39dce5d
Some busybox updates. See the changelog for details if you care.
...
-Erik
2000-01-25 18:13:53 +00:00
Erik Andersen
de552874d2
Some busybox updates. You no longer _have_ to put a "-" in front of tar
...
options, logger is better behaved and has a "-t" option now. init now supports
the kernel chroot patch, so you can chroot to a new device and umount the old
root.
-Erik
2000-01-23 01:34:05 +00:00
Erik Andersen
3163821967
Sync up busybox with the latest and greatest. This is not stuff for
...
the Embedix release.
-Erik
2000-01-15 22:28:50 +00:00
Erik Andersen
05df239ed9
Bug fixes.
...
-Erik
2000-01-13 04:43:48 +00:00
Erik Andersen
ac6e71f0c4
Possible fixes...
...
-Erik
2000-01-08 22:04:33 +00:00
Erik Andersen
5f2df6ccb4
Remove some leftover debug noise.
...
-Erik
2000-01-07 23:11:00 +00:00
Erik Andersen
812d46667d
More minor fixes.
...
-Erik
2000-01-07 18:30:40 +00:00
Erik Andersen
96e2abd084
Init is now even more perfect then before.
...
-Erik
2000-01-07 11:40:44 +00:00
Erik Andersen
0e3782f7c3
Init is now _more_ perfect then before.
...
-Erik
2000-01-07 02:54:55 +00:00
Erik Andersen
9e7372584f
inittab is now perfect. The universe will now submit to my
...
will. muhahahaha!!! Phear!
-Erik
2000-01-06 01:16:13 +00:00
Erik Andersen
0881de706e
The latest and greatest. init basically works, though needs
...
a minor inittab design change to accomodate specifying the device
to run each process on.
-Erik
2000-01-05 09:34:26 +00:00
Erik Andersen
7dc160721e
Bunches of fixes. Typos, bugs, etc.
...
Added 'gunzip -t'. inittab support _almost_ works (but it isn't
ready for prime time useage yet).
-Erik
2000-01-04 01:10:25 +00:00
Erik Andersen
9c88cac5cb
First pass inittab parser written
...
-Erik
1999-12-30 09:25:17 +00:00
Erik Andersen
f294a0288d
Fix double quoting bug preventing ininit scripts from running
1999-12-21 02:54:37 +00:00
Erik Andersen
4d1d0113fd
Reworked the source so it will compile and run under glibc 2.0.7
...
and linux kernel 2.0.36 (though the dubious reasons why someone
would want to do that defy imagination ;)
-Erik
1999-12-17 18:44:15 +00:00
Eric Andersen
84b009256f
Minor updates
1999-12-11 04:16:51 +00:00
Eric Andersen
2cb55077e2
Added poweroff (and adjusted init to use it). Inlined function
...
calls to code only called once in tee. Made BB_KLOGD and option.
-Erik
1999-12-10 08:25:07 +00:00
Eric Andersen
6805d5d69e
Adjustments for Johns init stuff,
...
-Erik
1999-12-09 22:39:55 +00:00
John Beppu
f95ca97d1b
findInitPid() has been implemented and it seems to work.
...
reboot has been changed to take advantage of findInitPid();
1999-12-09 22:10:18 +00:00
Eric Andersen
f0758dd6ba
* Fixed rebooting from init. I'd left some debugging code in
...
which blocked reboots. Oops.
-Erik
1999-12-09 07:57:58 +00:00
Eric Andersen
485b9550fd
Stuf
1999-12-07 23:14:59 +00:00
Eric Andersen
d00c262847
Stuf
1999-12-07 08:37:31 +00:00
Eric Andersen
0ecb54a0f3
Stuf
1999-12-05 23:24:55 +00:00
Eric Andersen
b186d980d6
Stuf
1999-12-03 09:19:54 +00:00
Eric Andersen
4c78147755
Changes
1999-11-26 08:12:56 +00:00
Eric Andersen
0727458a97
Stuf
1999-11-21 21:50:07 +00:00
Eric Andersen
08b1034f4f
Stuf
1999-11-19 02:38:58 +00:00
Eric Andersen
ded6259f62
Latest and greatest
1999-11-18 00:19:26 +00:00
Eric Andersen
d80e851dc0
Stuf
1999-11-16 00:46:00 +00:00
Eric Andersen
a9c95ea655
Updates
1999-11-15 17:33:30 +00:00