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 /etc/rc.d/rc3.d/S99reboot <path to post install script>

sample.sh contains code for reboot.

This partially works, it reboots... However, it keeps rebooting over and over. It seems the code inside of S99reboot is never executed.

Any help will be appreciated.