aboutsummaryrefslogtreecommitdiff
path: root/init (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Update some missing copyright noticesandersen2002-04-134-4/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@4599 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Completely rework the config system so that it no longer annoys me to work onandersen2002-04-122-19/+46
| | | | | | | | | | the busybox development tree. This eliminates the use of recursive make, and once again allows us to run 'make' in a subdirectory with the expected result. And things are now much faster too. Greatly improved IMHO... -Erik git-svn-id: svn://busybox.net/trunk/busybox@4595 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Provide a controlling tty to askfirst processes as wellandersen2002-03-291-1/+1
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@4500 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Rewind messages to avoid weird formatting, and fix a bug withandersen2002-03-201-22/+22
| | | | | | | CONFIG_FEATURE_EXTRA_QUIET, which was broken git-svn-id: svn://busybox.net/trunk/busybox@4446 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Update init.c per my changes in the stable branchandersen2002-03-051-222/+269
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@4332 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Russ Dill <Russ.Dill@asu.edu>. From theandersen2002-01-261-1/+10
| | | | | | | | | | | | | | | | | | | start-stop-daemon man page: -b|--background Typically used with programs that don't detach on their own. This option will force start-stop-daemon to fork before starting the process, and force it into the background. WARNING: start-stop-daemon cannot check the exit status if the process fails to execute for any reason. This is a last resort, and is only meant for programs that either make no sense forking on their own, or where it's not feasible to add the code for it to do this itself. This is usefull for applets like watchdog git-svn-id: svn://busybox.net/trunk/busybox@4112 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Teach 'init -q' that init's pid may not equal 1andersen2002-01-251-1/+8
| | | | git-svn-id: svn://busybox.net/trunk/busybox@4111 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Oops.andersen2002-01-061-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@4028 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Do not depend on PATH or getopt arg reorderingandersen2002-01-061-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@4026 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove `== TRUE' tests and convert `!= TRUE' and `== FALSE' tests to use !.kraai2001-12-201-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3925 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Vodz' last_patch31andersen2001-12-181-66/+23
| | | | | | | | | | | | | | | | Very minimal last corrections: 1) busybox.c: fix warining 2) docs/: add applets for list from pwd_grp 3) usage.h: add -n option for route 4) run_parts.c: many todo fix for busybox style 5) addgroup.c: add #ifdef CONFIG_FEATURE_SHADOWPASSWDS, reduce one perror_msg 6) adduser.c: fix bug "variable i not initialize" and add #ifdef CONFIG_FEATURE_SHADOWPASSWDS git-svn-id: svn://busybox.net/trunk/busybox@3900 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Add in a new restart init target, triggered by SIGHUP. Patch fromandersen2001-12-171-1/+32
| | | | | | | | Russ Dill, with adjustments by me. -Erik git-svn-id: svn://busybox.net/trunk/busybox@3896 69ca8d6d-28ef-0310-b511-8ec308f3f277
* If find_pid_by_name() had an error, it was returning -1, but storingandersen2001-12-063-3/+3
| | | | | | | | | | | that into a pid_t, which is unsigned on a number archs. Furthermore, find_pid_by_name() would _never_ return an error if the intended proces was "init", but instead would return 1, meaning we would fail to work on 2.4.x kernels running an initrd... -Erik git-svn-id: svn://busybox.net/trunk/busybox@3854 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Dan Langlois <dan@somanetworks.com> Support SIGSTOP/SIGCONTandersen2001-11-301-0/+31
| | | | | | | | for wierd situations when people want init to actualy stop doing anything for a while... git-svn-id: svn://busybox.net/trunk/busybox@3821 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix dangling commaandersen2001-11-211-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3766 69ca8d6d-28ef-0310-b511-8ec308f3f277
* S390 wierdnessandersen2001-11-201-2/+8
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3743 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Hide some ifdefs to make it more readibleandersen2001-11-171-24/+15
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3691 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Cleanup some config problems. Add a sane default config that basicallyandersen2001-11-101-2/+2
| | | | | | | matches the default old Config.h git-svn-id: svn://busybox.net/trunk/busybox@3648 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Add the run-parts applet submitted by Emanuele Ainaandersen2001-10-311-0/+294
| | | | | | | <emanuele.aina@tiscali.it> git-svn-id: svn://busybox.net/trunk/busybox@3615 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Run parts applet by Emanuele Aina <faina.mail@tiscalinet.it>andersen2001-10-312-0/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3612 69ca8d6d-28ef-0310-b511-8ec308f3f277
* patch from vodz:andersen2001-10-311-36/+26
| | | | | | | | I reduce 148 bytes from start_stop_daemon.c code. Also reduced memory allocated. git-svn-id: svn://busybox.net/trunk/busybox@3606 69ca8d6d-28ef-0310-b511-8ec308f3f277
* As Aaron Lehmann just pointed out, I forgot a line...andersen2001-10-281-0/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3599 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Add in some (theoretical) uClinux support. Some init cleanupsandersen2001-10-281-46/+51
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3596 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fixup the location of pwd.h and grp.handersen2001-10-241-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3572 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Major rework of the directory structure and the entire build system.andersen2001-10-246-19/+83
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@3561 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Commit the start-stop-daemon applet. This was contributed by Davidandersen2001-10-181-0/+271
| | | | | | | | | Kimdon <dwhedon@gordian.com> on october 7th -- the day I was fired from Lineo. So it seems I totally forgot about this patch until now. Sorry about that David! git-svn-id: svn://busybox.net/trunk/busybox@3546 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Scrub up some function prototypes.andersen2001-10-181-4/+4
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@3540 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix a nasty bug with variable name shadowingandersen2001-10-183-3/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3537 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Look for either "init" or "linuxrc" processesandersen2001-10-033-6/+15
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3476 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Two patches from Magick <magick@linux-fan.com>:andersen2001-09-051-19/+24
| | | | | | | | | | 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. git-svn-id: svn://busybox.net/trunk/busybox@3399 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Add support for devfs device names.kraai2001-07-231-17/+9
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3136 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Some patches to make dietlibc work...andersen2001-07-221-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3134 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Be extra extra careful about what we dereference.andersen2001-07-053-3/+12
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3004 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Only use a login shell when it will run on a console.kraai2001-06-121-10/+11
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2815 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Loop forever instead of exiting.kraai2001-06-031-9/+12
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2788 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from larry to fix some grammar errors.andersen2001-05-231-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2715 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Changed snprintf copies to use strncpy at the suggestion of Aaron Lehmann.kraai2001-05-181-8/+8
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2674 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Move messages.c to libbb. Make each string in messages.c be its own .o file.andersen2001-04-251-3/+0
| | | | | | | | | | 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 git-svn-id: svn://busybox.net/trunk/busybox@2430 69ca8d6d-28ef-0310-b511-8ec308f3f277
* A patch from Marc Karasek and Kanoj (kernel serial.c maintainer)andersen2001-04-231-1/+2
| | | | | | | | | 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 git-svn-id: svn://busybox.net/trunk/busybox@2401 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix comment.kraai2001-04-121-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2338 69ca8d6d-28ef-0310-b511-8ec308f3f277
* "I will always compile before I commit" x 100andersen2001-04-091-0/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2293 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Update how we detect if libc5 is in use.andersen2001-04-091-7/+7
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@2292 69ca8d6d-28ef-0310-b511-8ec308f3f277
* A number of cleanups. Now compiles with libc5, glibc, and uClibc. Fix a fewandersen2001-04-051-3/+1
| | | | | | | | | shadowed variables. Move (almost) all syscalls to libbb/syscalls.c, so I can handle them sanely and all at once. -Erik git-svn-id: svn://busybox.net/trunk/busybox@2250 69ca8d6d-28ef-0310-b511-8ec308f3f277
* A patch from Matt Kraai that adds a new 'shutdown' action to busybox init. Nowandersen2001-04-032-9/+18
| | | | | | | | you can specify an arbitrary behavior for 'ctrlaltdel' without that behavior needing to be a reboot. git-svn-id: svn://busybox.net/trunk/busybox@2232 69ca8d6d-28ef-0310-b511-8ec308f3f277
* A nice patch from Larry Doolittle that adds -Wshadow andandersen2001-03-211-1/+0
| | | | | | | cleans up most of the now-revealed problems. git-svn-id: svn://busybox.net/trunk/busybox@2177 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix up command line munging in init. Postpone the askfirst thing tillandersen2001-03-201-64/+76
| | | | | | | a bit later in run(). git-svn-id: svn://busybox.net/trunk/busybox@2172 69ca8d6d-28ef-0310-b511-8ec308f3f277
* A patch from Andreas Neuhaus to be especially careful to not dupandersen2001-03-161-10/+17
| | | | | | | any env variables when spawning child processes. git-svn-id: svn://busybox.net/trunk/busybox@2116 69ca8d6d-28ef-0310-b511-8ec308f3f277
* A better fix. Read nextPtr before mem gets freed.andersen2001-03-151-4/+8
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@2106 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Prevent init from potentially using already freed memory whenandersen2001-03-151-6/+6
| | | | | | | | deleting an initAction, fixing a bug pointed out by Andreas Neuhaus -Erik git-svn-id: svn://busybox.net/trunk/busybox@2095 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix init so that checking for terminal devices is delayed until theandersen2001-03-141-8/+6
| | | | | | | | | devices are actually used, thereby allowing devfsd based systems to work. This should fix bug #1133 -Erik git-svn-id: svn://busybox.net/trunk/busybox@2072 69ca8d6d-28ef-0310-b511-8ec308f3f277