Commit Graph

15 Commits

Author SHA1 Message Date
christos
191ca062bf add a sync to make it less likely to boot with /etc pointing to nothing after
a crash.
2012-12-31 23:21:27 +00:00
christos
29f0bfc6b2 From Anon Ymous:
Send the SIGALRM to the correct process when we timeout. See the note
in src/etc/rc regarding RC_PID.

The former code would leave you with a root shell when the prompt
timed out (if the tty is marked secure) while continuing the boot
process in another shell.  This was easily hidden if you started
xdm(1) at boot, while the root shell remains on another tty
(accessible with CTL-ALT-F1).
2010-11-01 14:42:08 +00:00
apb
2fc6cb0baa It's print_rc_metadata, not rc_print_metadata. 2009-09-12 17:40:01 +00:00
apb
bd87591cb3 Adapt /etc/rc.d/bootconf.sh script to the new /etc/rc:
Add "KEYWORD: interactive" so that the script's prompts work,
and use rc_print_metadata to add a message to the log.

Part of the /etc/rc silent changes requested in PR 41946
and proposed in tech-userlevel.
2009-09-11 18:17:43 +00:00
apb
7259650e89 Delete a line that was accidentally included from work in progress. 2009-09-06 12:30:45 +00:00
apb
660b31de3a Use functions from rc.subr. 2009-09-05 16:24:03 +00:00
hubertf
831546110a When switching the /etc/etc.current symlink, make it relative to /etc,
not absolute.

This affects an update with sysinst, which will try to look at
/targetroot/etc/fstab, which points to /etc/etc.whatever, which is
not there during the upgrade, and results in all (/targetroot)/etc
files getting nuked!
2006-04-23 23:26:26 +00:00
christos
6e9a790e1f Use new style command substitution. 2004-10-11 15:00:51 +00:00
is
f334171ccc Variable substitution happens at trap installation time, not at trap
execution time - so it used to print "Using default configuration of
/etc/passwd".
2003-04-03 11:25:10 +00:00
wiz
247d6694f7 Handle links to absolute paths too. Closes my PR 19125. 2002-12-05 16:52:58 +00:00
wiz
7a92731e6f Fix typo in last (which broke the script). 2002-03-25 03:22:10 +00:00
lukem
c0685815ef - Add sanity checks recommended by Robert Elz in [bin/13871] (with slight mods)
- Use symbolic trap names
2002-03-24 15:08:58 +00:00
nisimura
fb62520419 Avoid extra command invocation as possible, and use smart variable
substitution instead.
2000-10-09 05:30:17 +00:00
lukem
8f896c47b9 REQUIRE bootconf' in lkm1 rather than BEFORE beforenetlkm' in bootconf.sh 2000-08-21 23:34:45 +00:00
lukem
c53094a738 rc.d scripts derived from /etc/rc 2000-03-10 11:53:23 +00:00