From owner-freebsd-questions@FreeBSD.ORG Thu Feb 17 01:42:26 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C41B816A4CE for ; Thu, 17 Feb 2005 01:42:26 +0000 (GMT) Received: from smtphost.cis.strath.ac.uk (smtphost.cis.strath.ac.uk [130.159.196.96]) by mx1.FreeBSD.org (Postfix) with ESMTP id 26AAD43D2F for ; Thu, 17 Feb 2005 01:42:26 +0000 (GMT) (envelope-from chodgins@cis.strath.ac.uk) Received: from [192.168.0.4] (chrishodgins.force9.co.uk [84.92.20.141]) j1H1gEFX006896; Thu, 17 Feb 2005 01:42:14 GMT Message-ID: <4213F7A1.3030304@cis.strath.ac.uk> Date: Thu, 17 Feb 2005 01:47:13 +0000 From: Chris Hodgins User-Agent: Mozilla Thunderbird 1.0 (X11/20050204) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Mike Jeays References: <03fb01c51457$3f246ff0$0b01a8c0@enigmedia.net> <1108595484.708.8.camel@chaucer.jeays.ca> In-Reply-To: <1108595484.708.8.camel@chaucer.jeays.ca> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-CIS-MailScanner-Information: Please contact support@cis.strath.ac.uk for more information X-CIS-MailScanner: Found to be clean X-CIS-MailScanner-SpamCheck: not spam, SpamAssassin (score=0, required 6) X-CIS-MailScanner-From: chodgins@cis.strath.ac.uk cc: aklist_061666 cc: freebsd-questions@freebsd.org Subject: Re: can't reboot after messing up my rc.conf file X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Feb 2005 01:42:26 -0000 Mike Jeays wrote: > On Wed, 2005-02-16 at 13:42, aklist_061666 wrote: > >>Hi All: >> >>I was editing my rc.conf file and left off a quote mark, and now when I try >>to reboot I get an error and am prompted to drop into shell to fix it. >> >>The default prompt is /bin/sh, and if I hit return I get a prompt. >> >>How can I edit the file while I'm in that prompt? VI doesn't work...is there >>another text editor I can use to fix the file? >> >>TIA >> >>_______________________________________________ >>freebsd-questions@freebsd.org mailing list >>http://lists.freebsd.org/mailman/listinfo/freebsd-questions >>To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > > > /bin/ed > > Be prepared with a printed manual and a wet towel for your head! > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > Or you could just simply: # /bin/mv /etc/rc.conf /etc/rc.conf.bad # /bin/echo "=" >> /etc/rc.conf This will give you a nice new rc.conf that you can edit once you are up and running again. HTH Chris