Commit Graph
17 Commits
Author SHA1 Message Date
Joachim Nilsson b0aec188bc Further cleanup, move signal setup to a file of its own.
finit.c:
        o Perform signal setup as soon as possible, no need to do any
          mounting of /proc or /sys beforehand
        o Move signal setup and callbacks to a file of its own
        o Use more #defines for hard coded strings
        o Use a more neutral default hostname

signal.c:
        o New file, for setup and signal handlers
        o Add support for SIGSTOP/SIGSTP and SIGCONT.  This pauses finit
          respawning of xinit/shell.  Useful for, e.g., debugging
        o Document each ignored and handled signal better
        o Disable SIGUSR1 and SIGUSR2 for now, will be reenabled later

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2012-09-17 10:41:18 +02:00
Joachim Nilsson 4657d9713a Minor cleanup. Moved code around a bit, to functions, away from main().
This commit is in preparation for importing the Westermo code changes.
Slowly refactoring the finit core into a more modularized unit to be a
bit more maintainable.

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2012-09-17 01:51:37 +02:00
Joachim Nilsson e2c4a6ceaf Remove optional --directisa call to hwclock, this is the default anyway.
This is a followup to Olivier Blin's patch from 88ffb93 in that it
applies the same patch to finit-mod.c that is already in finit.c, or
finit-alt.c as it was called then.

Also, the optional --directisa argument to hwclock is not necessary.
The hwclock utility has a built-in fallback to use excplicit I/O over
the /dev/rtc in case the latter does not exist.  See the hwclock(8) man
page for more information on this.

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2012-09-14 13:11:31 +02:00
Joachim Nilsson 5816c9cab9 Embedded finit for small embedded Linux systems and servers.
o Make finit-alt.c the new finit.c, save old finit.c as finit-org.c
o Keep original finit-alt.c for reference.
o Update README and ChangeLog with direction of this fork
o Correct ChangeLog date for v0.1 and set release date for
  the 0.6-pre release to 20100614, which is the last commit
  by the original author.
o Add standard LICENSE file for MIT License
o Add standard AUTHORS file to document history of project
o Bump version to 1.0-pre to distance fork from original

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2012-09-14 13:10:39 +02:00
Claudio Matsuoka 8206803762 Remove duplicate unionctl() error in initial reimplementation
Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
2008-02-21 14:09:32 -03:00
Claudio Matsuoka bbe281db55 Drop system("rm -f") to clean /tmp, its a fresh mounted tmpfs
Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
2008-02-16 18:07:57 -02:00
Claudio Matsuoka 66af03705e Fixed shutdown.fb file name (reported by Metalshark)
Metalshark says:
January 28th, 2008 at 7:32 pm - Edit

Tested this on an ASUS EEE.

Basically needed this to modify hwclock lines with –directisa when mucking about with the kernel.

There is one fault. /boot/shutdown.b should be /boot/shutdown.fb - you were missing the “f”. Otherwise a sterling effort!

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
2008-02-04 11:41:10 -02:00
Claudio Matsuoka 3a636e833c Fix SIGHUP handler, cosmetic changes
Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
2007-12-30 18:27:24 -02:00
Claudio Matsuoka 5f6d9d0109 Fixed signal handling in shutdown()
Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
2007-12-30 18:11:41 -02:00
Claudio Matsuoka 2996545772 Change creat() to open(), fix error tests
Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
2007-12-30 15:48:51 -02:00
Claudio Matsuoka e4eaf79996 Fix parameter to shutdown()
Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
2007-12-30 15:00:12 -02:00
Claudio Matsuoka 517a628337 Fix bugs: mountpoints, parent/child in fork, signal handling and startx
Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
2007-12-30 14:48:47 -02:00
Claudio Matsuoka 41a9745384 Cosmetic changes
Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
2007-12-30 12:54:09 -02:00
Claudio Matsuoka a1b91e7191 First complete buildable version (may have bugs)
Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
2007-12-30 12:09:39 -02:00
Claudio Matsuoka 83bffbf8e9 More code adjustments, this version can be compiled
Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
2007-12-29 23:29:18 -02:00
Claudio Matsuoka a4c8150c77 Fixed minor errors and typos
Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
2007-12-29 23:05:38 -02:00
Claudio Matsuoka 64b95a972a Eeepc fastinit reconstruction (WIP)
Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
2007-12-29 22:03:40 -02:00