11.01.2015 Views

Red Hat Enterprise Linux Installation Guide 5.2 - linux.meuhobby.com

Red Hat Enterprise Linux Installation Guide 5.2 - linux.meuhobby.com

Red Hat Enterprise Linux Installation Guide 5.2 - linux.meuhobby.com

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chroot Environment<br />

Figure 29.16. Post-<strong>Installation</strong> Script<br />

You can also add <strong>com</strong>mands to execute on the system after the installation is <strong>com</strong>pleted. If the<br />

network is properly configured in the kickstart file, the network is enabled, and the script can<br />

include <strong>com</strong>mands to access resources on the network. To include a post-installation script,<br />

type it in the text area.<br />

Caution<br />

Do not include the %post <strong>com</strong>mand. It is added for you.<br />

For example, to change the message of the day for the newly installed system, add the<br />

following <strong>com</strong>mand to the %post section:<br />

echo "Hackers will be punished!" > /etc/motd<br />

Tip<br />

More examples can be found in Section 7.1, “Examples”.<br />

333

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!