From owner-freebsd-questions Wed Dec 12 7:51:35 2001 Delivered-To: freebsd-questions@freebsd.org Received: from quebec.procergs.com.br (quebec.procergs.com.br [200.198.128.236]) by hub.freebsd.org (Postfix) with ESMTP id 2195B37B43B for ; Wed, 12 Dec 2001 07:51:25 -0800 (PST) Received: from ws-tor-0073.procergs.rs.gov.br (unknown [172.28.6.140]) by quebec.procergs.com.br (Postfix) with ESMTP id 24A0EF1CBF; Wed, 12 Dec 2001 13:51:20 -0200 (BRST) Message-Id: <5.1.0.14.1.20011212135123.00a64e68@imap.procergs.rs.gov.br> X-Sender: procergs-filipe-brandenburger@imap.procergs.rs.gov.br X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Wed, 12 Dec 2001 13:54:25 -0300 To: devin-freebsdquestions@rintrah.org From: Filipe Brandenburger Subject: Re: Doing "batch" updates in single-user mode Cc: freebsd-questions@freebsd.org In-Reply-To: <20011212103624.A10754@tharmas.rintrah.org> References: <5.1.0.14.1.20011212100146.00a6f420@imap.procergs.rs.gov.br> <5.1.0.14.1.20011212100146.00a6f420@imap.procergs.rs.gov.br> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG At 12/12/2001 12:36, devin-freebsdquestions@rintrah.org wrote: >I'm curious about this too, but I don't have a system to test it on right now. > >Wouldn't a shell script along the lines of: > >#!/bin/sh >shutdown && cd && make ... >eval exit > > >or some such do the trick if run as root? Well, I tested it, and it didn't work. I tried this: #!/bin/sh init 1 && touch I_was_here eval exit It actually put the system in single-user mode, and it touched the file I_was_here, but it still showed the prompt asking what shell would I like to run, and it didn't come back to multi-user until I hit ^D on the console... I'll try other things of this kind, I'll tell if I discover something. Thanks, Filipe. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message