Need to run a Command Once on Boot. FreeBSD8.1

Samuel Martín Moro faust64 at gmail.com
Fri Sep 3 19:18:47 UTC 2010


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ín Moro
{EPITECH.} tek4
CamTrace S.A.S
  (+033) 1 41 38 37 60
  1 Allée 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
<martin at dc.cis.okstate.edu>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 at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "
> freebsd-questions-unsubscribe at freebsd.org"
>


More information about the freebsd-questions mailing list