From owner-freebsd-bugs Tue Oct 10 22:40: 6 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 39E7437B502 for ; Tue, 10 Oct 2000 22:40:03 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id WAA93031; Tue, 10 Oct 2000 22:40:03 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Date: Tue, 10 Oct 2000 22:40:03 -0700 (PDT) Message-Id: <200010110540.WAA93031@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Doug Barton Subject: Re: misc/21904: Fix for diskless startup bug in /etc/rc Reply-To: Doug Barton Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR misc/21904; it has been noted by GNATS. From: Doug Barton 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