| Summary: | [MFC] [PATCH] Fix for diskless startup bug in /etc/rc | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Base System | Reporter: | anton <anton> | ||||
| Component: | misc | Assignee: | Doug Barton <dougb> | ||||
| Status: | Closed FIXED | ||||||
| Severity: | Affects Only Me | ||||||
| Priority: | Normal | ||||||
| Version: | 4.1-STABLE | ||||||
| Hardware: | Any | ||||||
| OS: | Any | ||||||
| Attachments: |
|
||||||
|
Description
anton
2000-10-11 06:10:01 UTC
anton@urc.ac.ru wrote: > > --- rc.old Fri Sep 8 12:16:20 2000 > +++ rc Wed Oct 11 10:34:09 2000 > @@ -20,6 +20,7 @@ > trap : 2 > trap : 3 # shouldn't be needed > > +bootmode=$1 > HOME=/ > PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin > export HOME PATH > @@ -57,7 +58,7 @@ > > swapon -a > > -case $1 in > +case ${bootmode} in > autoboot) > echo Automatic boot in progress... > fsck -p The patch seems reasonable. For style reasons I'd add a newline after the assignment line, otherwise it seems fine. Good detective work. Doug Responsible Changed From-To: freebsd-bugs->dougb Doug seems to be interested in this and became a committer meanwhile. 8-) State Changed From-To: open->analyzed I've committed this to -current, will MFC after a respectable time period for feedback. State Changed From-To: analyzed->closed The patch has been committed to -current and RELENG_4. In my opinion it's not appropriate for RELENG_3, but I have no objections if another committer wants to take it on. |