I am using SUSE 10 and I am trying to execute my script through post install script.
And my script contains code for reboot.

My post install script looks like:
pushd ###
sh sample.sh

and I created link as follows:
ln -sf <path to post install script> /etc/rc.d/rc3.d/S99reboot

sample.sh contains code for reboot.
It reboots However, it keeps rebooting over and over. It seems the code inside of S99reboot is never executed.

Any help will be appreciated.