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>
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>
Example:
gcc -c -Os -Wall -DVERSION=\"0.6-pre\" -DWHOAMI=\"`whoami`@`hostname`\" -march=pentium-m -DBUILTIN_RUNPARTS -o finit-mod.o finit-mod.c
finit-mod.c: In function ‘main’:
finit-mod.c:107: warning: ignoring return value of ‘chdir’, declared with attribute warn_unused_result
finit-mod.c:137: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result
finit-mod.c:164: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result
finit-mod.c:168: warning: ignoring return value of ‘system’, declared with attribute warn_unused_result
Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
Fsck filesystems before mounting root as read-write. Mountdev and
device creation can stay there because they're tmpfs.
Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
Metalshark says:
February 19th, 2008 at 9:10 pm
There is an issue with some ACPI/Kernel combinations to do with shutdown.
It isn’t always powering off (tried /proc/acpi and /sys methods) - however
removing all the fd > 5 stuff and putting in the simple line
“reboot(RB_POWER_OFF);” worked for all thus far. Although semantically
incorrect it is a working solution.
Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
*) Add -march=pentium-m if compiling finit or finit-mod (as the target will
be an eeepc).
*) Add a -DNO_HCTOSYS make option that omits the first /sbin/hwclock if the
user has enabled CONFIG_RTC_HCTOSYS in the kernel.
*) Add a -DDIRECTISA make option to append –directisa to /sbin/hwclock lines
if the user has disabled CONFIG_GENRTC and enabled CONFIG_RTC but not
enabled CONFIG_HPET_TIMER and CONFIG_HPET_RTC_IRQ.
Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
Use home= and user= parameters in the kernel command line to set
the home device and the default user
Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>