From owner-freebsd-stable  Sat Sep 14 12:55:13 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 D60E437B400
	for <freebsd-stable@FreeBSD.ORG>; Sat, 14 Sep 2002 12:55:06 -0700 (PDT)
Received: from mail.dfwgroove.com (216-73-99-183.ocdc-01.net [216.73.99.183])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 3D83743E8A
	for <freebsd-stable@FreeBSD.ORG>; Sat, 14 Sep 2002 12:55:01 -0700 (PDT)
	(envelope-from jon.longoria@dfwgroove.com)
Received: from aristotle [65.189.227.37] by mail.dfwgroove.com with ESMTP
  (SMTPD32-7.07) id A4BA44900BE; Sat, 14 Sep 2002 12:57:46 -0700
Message-ID: <003d01c25c28$afd38f40$0c01a8c0@aristotle>
From: "Jon Longoria" <jon.longoria@dfwgroove.com>
To: <freebsd-stable@FreeBSD.ORG>
References: <200209140956.g8E9uDxJ095753@lurza.secnetix.de>
Subject: Re: Re:
Date: Sat, 14 Sep 2002 14:55:32 -0500
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2600.0000
Disposition-Notification-To: "Jon Longoria" <jon.longoria@dfwgroove.com>
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
Sender: owner-freebsd-stable@FreeBSD.ORG
Precedence: bulk
List-ID: <freebsd-stable.FreeBSD.ORG>
List-Archive: <http://docs.freebsd.org/mail/> (Web Archive)
List-Help: <mailto:majordomo@FreeBSD.ORG?subject=help> (List Instructions)
List-Subscribe: <mailto:majordomo@FreeBSD.ORG?subject=subscribe%20freebsd-stable>
List-Unsubscribe: <mailto:majordomo@FreeBSD.ORG?subject=unsubscribe%20freebsd-stable>
X-Loop: FreeBSD.ORG

Oliver,

Fixed it last night, but thanks btw. And I couldn't use any editor at that
point, being that the term hadn't been set properly. Once I had fixed that
little problem, i opened it up in ee fine, realized the issue and resolved
it. :)


----- Original Message -----
From: "Oliver Fromme" <olli@secnetix.de>
To: <freebsd-stable@FreeBSD.ORG>
Sent: Saturday, September 14, 2002 4:56 AM
Subject: Re: Re:


> [quoting repaired]
>
> Jon Longoria <jon.longoria@dfwgroove.com> wrote:
>  > glbj@verizon.net wrote:
>  > > Jon Longoria <jon.longoria@dfwgroove.com> wrote:
>  > > I may be stating the obvious but the following:
>  > > >
>  > > > /etc/rc: 427 Syntax error: ";;" unexpected (expecting "fi")
>  > > > Enter full pathname of shell or RETURN for /bin/sh:
>  > > >
>  > >
>  > > looks like there is an incorrectly terminated 'if' in /etc/rc.
>  > > I've just gotten 4.6 up (I'll worry about *.2 later) so I don't
>  > > know if the /etc/rc I have matches yours. A close look at that
>  > > script might be a place to start anyway.
>  >
>  > Yea, i was trying to bring it up to check that line, but both vi and ee
>  > won't show to console proper, so its a bit of a catch22 for me.
>
> You have everything you need in single-user mode.  To
> display the lines surrounding that error (with line
> numbers), this command will do it:
>
> # echo 417,437n | ed /etc/rc
>
> To actually edit the file and fix the problem, you can
> also use ed interactively; I'd suggest you read the ed(1)
> manpage.  Every sysadmin _should_ be able to work with
> /bin/ed in case of emergency, IMO.
>
> By the way, editing /etc/rc in single-user mode requires
> to remount it read-write (default after reboot is read-
> only):
>
> # fsck -p / && mount -u -o rw /
>
> Having said that -- if the syntax error in /etc/rc is
> the only problem on that machine, you could of course
> mount the other partitions and then use vi or ee if you
> prefer:
>
> # fsck -p && mount -a -t nonfs
>
> That will also enable you to read the ed(1) manpage.  ;-)
>
> Regards
>    Oliver
>
> PS:  The Solaris manpage of ed(1) says at the very beginning
> of the "DESCRIPTION" section:  "The ed utility is the
> standard text editor."
>
> I'd vote for adopting that sentence for our manpage.  :-)
>
> --
> Oliver Fromme, secnetix GmbH & Co KG, Oettingenstr. 2, 80538 München
> Any opinions expressed in this message may be personal to the author
> and may not necessarily reflect the opinions of secnetix in any way.
>
> "All that we see or seem is just a dream within a dream" (E. A. Poe)
>
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-stable" in the body of the message
>


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message