Installation guide
56 Chapter 2. Kickstart Configurator
echo "Hackers will be punished!" > /mnt/sysimage/etc/motd
2.11.2. Use an Interpreter
If you want to specify a scripting language to use to execute your script, click the Use an
interpreter button and enter the interpreter in the text box beside the button. For example,
/usr/bin/perl can be specified for a Perl script. This option corresponds to using %post
--interpreter /usr/bin/perl in your kickstart file.
2.11.3. Examples
The post-installation script can be used to perform any useful functions such as the following
examples.
Turn services on and off:
/sbin/chkconfig --level 345 telnet off
/sbin/chkconfig --level 345 finger off
/sbin/chkconfig --level 345 lpd off
/sbin/chkconfig --level 345 httpd on
Run a script named runme from an NFS share:
mkdir /mnt/temp
mount 10.10.0.2:/usr/new-machines /mnt/temp
open -s -w -- /mnt/temp/runme
umount /mnt/temp
Add a user to the system:
/usr/sbin/useradd bob
/usr/bin/chfn -f "Bob Smith" bob
/usr/sbin/usermod -p ’kjdf$04930FTH/ ’ bob
2.12. Saving the File
After you have finished choosing your kickstart options, click the Save File button. A dialog
box similar to Figure 2-15 will appear to allow you to review your choices before saving the
file.