Firstly: there should be little need to reboot in the middle of an install. Linux, like all U*ix'ses, only should be rebooted if the kernel is updated or new non-plug&play hardware was installed
Having said that, some cases do exist and you probably want to look at /usr/bin/firstboot as an example... it could be you don't have it, unsure if it is a Redhat-only program. You might have to Google for it.
Also study how /etc/init.d and /etc/rc0.d through /etc/rc6.d work.
Finally, have a look at /etc/inittab and /etc/rc.sysinit.
Happy coding,
Walter.