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 two machines is that when I execute the
reboot command on the first machine, it shows another shell prompt and then 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
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.