Re: Post reboot commands (howto?)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 2005-03-04 at 11:31 -0800, niko wrote:
> I am using kickstart (EL3) to setup machines over the network. I would
> like to
> be able to run a script only once when the machine reboots after a
> successful
> installation (script must run with the right kernel and so on...)
> 
> The %post sequence is executed before the reboot so that is not doing
> it.
> I was thinking of adding a 'runonce' file in /etc/init.d to do the
> work and
> remove itself. Has anyone a better solution?

I do pretty close to this.  I'll backup the original /etc/rc.local file
in the kickstart %post, and drop a new rc.local file in that points to
the script I want ran after boot.  The end of my script will replace the
backed up rc.local file.

-- 
Jesse Keating RHCE      (geek.j2solutions.net)
Fedora Legacy Team      (www.fedoralegacy.org)
GPG Public Key          (geek.j2solutions.net/jkeating.j2solutions.pub)
 
Was I helpful?  Let others know:
 http://svcs.affero.net/rm.php?r=jkeating


[Index of Archives]     [Red Hat General]     [CentOS Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux