Difference in behavior of reboot

Posted by LinuxPenseur on Server Fault See other posts from Server Fault or by LinuxPenseur
Published on 2011-01-11T09:24:52Z Indexed on 2011/01/11 21:55 UTC
Read the original article Hit count: 250

Filed under:
|
|
|

Hi,

I have 2 machines running linux.

In one machine, the reboot command is an executable normally found in all linux distributions.

In the second machine the reboot command is a shell script customized using some other hardware tool commands to reboot the system.

One behavior difference between the 2 machines is that when i execute reboot command on the first machine, it shows another shell prompt and then only reboots.

But in the case of second machine, it reboots without showing a shell prompt. I expect the second machine to behave the same way as first machine when reboot command is given.

Currently i am analyzing the source code of shutdown.c and halt.c normally found in linux distributions, so that i can find out the implementation which produces the shell propmt on reboot and use that in the shell script in second machine.

Kindly give me some pointers on where i should start looking to find the implementation.

Thanks

© Server Fault or respective owner

Related posts about linux

Related posts about shell