Date: Tue, 10 Oct 2000 22:40:03 -0700 (PDT) From: Doug Barton <DougB@gorean.org> To: freebsd-bugs@FreeBSD.org Subject: Re: misc/21904: Fix for diskless startup bug in /etc/rc Message-ID: <200010110540.WAA93031@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR misc/21904; it has been noted by GNATS.
From: Doug Barton <DougB@gorean.org>
To: anton@urc.ac.ru
Cc: FreeBSD-gnats-submit@freebsd.org
Subject: Re: misc/21904: Fix for diskless startup bug in /etc/rc
Date: Tue, 10 Oct 2000 22:31:04 -0700
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
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200010110540.WAA93031>
