From owner-freebsd-questions@FreeBSD.ORG Fri Sep 3 19:18:47 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3554710656C9 for ; Fri, 3 Sep 2010 19:18:47 +0000 (UTC) (envelope-from faust64@gmail.com) Received: from mail-qw0-f54.google.com (mail-qw0-f54.google.com [209.85.216.54]) by mx1.freebsd.org (Postfix) with ESMTP id DE6B08FC08 for ; Fri, 3 Sep 2010 19:18:46 +0000 (UTC) Received: by qwg5 with SMTP id 5so2282131qwg.13 for ; Fri, 03 Sep 2010 12:18:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type; bh=DawIY5ujZ0Ci+Z6/fOTTlpdJpaIgWv8PfnnEqy7bYxM=; b=L5vOTROAyIHGeQ9VrmLOhHVcjZfXG8wdC33pPRns84UuTHROuZwumGaIhPlBVdrkR+ oQ50F1jN1gV5Tat1FiywfgrtB/BTQp7N/PxzbrshPngx7f1CMQGBNMRJrZZDDH6hrFNf I6C5PHox7e8EdWAkkjBRq8FjNbD7+pfP8z/lo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=Qj/uXDrnHv7bYkL8TiYv7n5KVLK9Ln5Hh7lYNk283kNcaQVIxEfEyTHC065zTWjwGK d+H+4eSj48VwLXoc6oMfscn0o0RxzMhIFlmmVp3Hx6bpx+zmkfxbKg5VChLaT8znkQfz PQFau8iaOZSMh8RiCTcFq8FmtXdsdsLANr+D0= Received: by 10.224.19.103 with SMTP id z39mr258009qaa.348.1283541525885; Fri, 03 Sep 2010 12:18:45 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.213.203 with HTTP; Fri, 3 Sep 2010 12:18:14 -0700 (PDT) In-Reply-To: <201009031913.o83JDXOt054359@dc.cis.okstate.edu> References: <201009031913.o83JDXOt054359@dc.cis.okstate.edu> From: =?ISO-8859-1?Q?Samuel_Mart=EDn_Moro?= Date: Fri, 3 Sep 2010 21:18:14 +0200 Message-ID: To: Martin McCormick Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org Subject: Re: Need to run a Command Once on Boot. FreeBSD8.1 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Sep 2010 19:18:47 -0000 creating a /etc/rc.local that rm itself? or, if you already have a rc.local, calling there a script that would self desctruct after beeing launched. Samuel Mart=EDn Moro {EPITECH.} tek4 CamTrace S.A.S (+033) 1 41 38 37 60 1 All=E9e de la Venelle 92150 Suresnes FRANCE "Nobody wants to say how this works. Maybe nobody knows ..." Xorg.conf(5) On Fri, Sep 3, 2010 at 9:13 PM, Martin McCormick wrote: > I seem to recall that there is some sort of stub that > will let one execute a script which runs at the last stage of > the boot process but I can't seem to remember enough to look it > up. > > I need to run a small script to do pwd_mkdb just once to > sync the passwd data base after booting a 8.1 system for the > first time. The system is being built via script and > /etc/master.passwd has a couple of accounts that the data base > doesn't know about. After running pwd_mkdb against > /etc/master.passwd, all is well but we are locked out of the > system until this happens. > > I may even make the script destroy itself after > launching since it never needs to run after that one time. > > Thanks. > > Martin McCormick WB5AGZ Stillwater, OK > Systems Engineer > OSU Information Technology Department Telecommunications Services Group > _______________________________________________ > 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" >