Script which runs after first reboot only?

Jesse Keating jkeating at j2solutions.net
Fri Apr 28 02:00:33 UTC 2006


On Thu, 2006-04-27 at 18:57 -0700, Pat wrote:
> 
> Where do I place this script so it only runs once
> after the first reboot? Thanks for any help!
> 

In %post, copy /etc/rc.local to /etc/rc.local.back, insert your script
into the end of /etc/rc.local, add to the end of your script a move
of /etc/rc.local.back to /etc/rc.local

And you're done (;

-- 
Jesse Keating RHCE      (geek.j2solutions.net)
Fedora Legacy Team      (www.fedoralegacy.org)
GPG Public Key          (geek.j2solutions.net/jkeating.j2solutions.pub)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://listman.redhat.com/archives/kickstart-list/attachments/20060427/7f51d9e4/attachment.sig>


More information about the Kickstart-list mailing list