From owner-freebsd-questions@FreeBSD.ORG Fri Sep 3 19:13:48 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 4AC9010656B6 for ; Fri, 3 Sep 2010 19:13:48 +0000 (UTC) (envelope-from martin@dc.cis.okstate.edu) Received: from dc.cis.okstate.edu (dc.cis.okstate.edu [139.78.103.93]) by mx1.freebsd.org (Postfix) with ESMTP id 134518FC1D for ; Fri, 3 Sep 2010 19:13:47 +0000 (UTC) Received: from dc.cis.okstate.edu (localhost.cis.okstate.edu [127.0.0.1]) by dc.cis.okstate.edu (8.14.2/8.13.8) with ESMTP id o83JDXOt054359 for ; Fri, 3 Sep 2010 14:13:33 -0500 (CDT) (envelope-from martin@dc.cis.okstate.edu) Message-Id: <201009031913.o83JDXOt054359@dc.cis.okstate.edu> To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <54357.1283541213.1@dc.cis.okstate.edu> Date: Fri, 03 Sep 2010 14:13:33 -0500 From: Martin McCormick Subject: 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:13:48 -0000 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