Date: Wed, 12 Dec 2001 13:54:25 -0300 From: Filipe Brandenburger <filipe@procergs.rs.gov.br> To: devin-freebsdquestions@rintrah.org Cc: freebsd-questions@freebsd.org Subject: Re: Doing "batch" updates in single-user mode Message-ID: <5.1.0.14.1.20011212135123.00a64e68@imap.procergs.rs.gov.br> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <dir> && 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5.1.0.14.1.20011212135123.00a64e68>