Reboot in post script

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
popd

and I created link as follows:
ln -sf /etc/rc.d/rc3.d/S99reboot

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.
Thanks

[QUOTE=Neha1234;4681]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
popd

and I created link as follows:
ln -sf /etc/rc.d/rc3.d/S99reboot

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.
Thanks[/QUOTE]

Duplicate post… answered in the other thread.

Cheers,
Willem