From owner-freebsd-stable Sat Sep 14 2:18: 5 2002 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9EC0937B7FB for ; Sat, 14 Sep 2002 02:16:49 -0700 (PDT) Received: from mail.halplant.com (ip68-100-145-31.nv.nv.cox.net [68.100.145.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id 04F0843E77 for ; Sat, 14 Sep 2002 02:15:37 -0700 (PDT) (envelope-from A.J.Caines@halplant.com) Received: by mail.halplant.com (Postfix, from userid 1001) id E9C721A6; Sat, 14 Sep 2002 05:15:35 -0400 (EDT) Date: Sat, 14 Sep 2002 05:15:35 -0400 From: Andrew J Caines To: freebsd-stable@freebsd.org Subject: Re: Re: ';;' instead of 'fi' Message-ID: <20020914091535.GA99342@hal9000.halplant.com> Reply-To: Andrew J Caines Mail-Followup-To: freebsd-stable@freebsd.org References: <20020914064905.ZHOO16391.out018.verizon.net@[127.0.0.1]> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020914064905.ZHOO16391.out018.verizon.net@[127.0.0.1]> Organization: H.A.L. Plant X-PGP-Fingerprint: C59A 2F74 1139 9432 B457 0B61 DDF2 AA61 67C3 18A1 X-Powered-by: FreeBSD 4.6-STABLE X-URL: http://halplant.com:88/ Importance: Normal User-Agent: Mutt/1.5.1i Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG glbj@verizon.net said.. > there are a few around here that can probably spot the problem. ..where Jon's /etc/rc apparently included... ----8<---- if [ "${dumpdev}" != 'NO' ]; then case ${dumpdir} in '') dumpdir='/var/crash' ;; [Nn][Oo]) dumpdir='NO' ;; esac if [ "$[dumpdir]" != 'NO' ]; then echo -n 'Checking for core dump: ' /sbin/savecore ${savecore_flags} "${dumpdir}" fi ;; <===( +++ NOTE: LINE 427 +++ ) esac ----8<---- This is an obvious mistake, closing an if block with "esac". You should be able to mount / read/write if it's not already that way, mount /usr if you've separated it, edit /etc/rc, remove the ";;" line (427) and change that following "esac" to "fi". My -STABLE /etc/rc dated 18th May is fine (though I can see several differences in this section) and I didn't see this obviously get fixed in CVS[1], so I suspect Jon's merge might have borked. [1] http://www.freebsd.org/cgi/cvsweb.cgi/src/etc/rc -Andrew- -- _______________________________________________________________________ | -Andrew J. Caines- Unix Systems Engineer A.J.Caines@halplant.com | | "They that can give up essential liberty to obtain a little temporary | | safety deserve neither liberty nor safety" - Benjamin Franklin, 1759 | To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message