PDA

View Full Version : Reboot in post script



Neha1234
17-May-2012, 10:25
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 <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.
Thanks

Magic31
17-May-2012, 14:57
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 <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.
Thanks

Duplicate post... answered in the other thread.

Cheers,
Willem