Customize reboot and shutdown commands


Forum: Other Help Topics
Topic: Customize reboot and shutdown commands
started by: dialomar

Posted by dialomar on July 31 2006,13:34
Hi,

How can I customize reboot and shutdown commands?
There is anyway to get their source code and compile them?

Thanks in advance.

Posted by mikshaw on July 31 2006,18:09
In what way do you want to customize them?  If you just want to run some additional stuff during shutdown or startup, the relevant scripts are /opt/bootlocal.sh and /opt/powerdown.sh
Posted by dialomar on July 31 2006,20:15
Quote (mikshaw @ July 31 2006,14:09)
In what way do you want to customize them?  If you just want to run some additional stuff during shutdown or startup, the relevant scripts are /opt/bootlocal.sh and /opt/powerdown.sh

I want to echo off all screen messages like :
INIT: Sending ....

I realize that init file which is responsible for reboot and shutdown processes, but how can I recompile init file ?

Thanks

Posted by brianw on Aug. 01 2006,03:17
Quote (dialomar @ July 31 2006,16:15)
I want to echo off all screen messages like :
INIT: Sending ....

You want to turn off all messages as it is shutting down?

I have to ask.  Why?

Posted by Zucca on Aug. 01 2006,04:18
Jeah. It's quite important to know if there's something wrong...
Without error msg's you can only guess where's the problem.

Posted by dialomar on Aug. 01 2006,13:20
Quote (Zucca @ Aug. 01 2006,00:18)
Jeah. It's quite important to know if there's something wrong...
Without error msg's you can only guess where's the problem.

yeh, I know, I will redirect them to log file if I have source code.

Thanks.

Posted by mikshaw on Aug. 01 2006,14:37
I'd look into /etc/init.d/knoppix-halt and /etc/init.d/knoppix-reboot instead of the binaries, since that's where many of the shutdown/restart messages are coming from
Posted by dialomar on Aug. 01 2006,15:40
Quote (mikshaw @ Aug. 01 2006,10:37)
I'd look into /etc/init.d/knoppix-halt and /etc/init.d/knoppix-reboot instead of the binaries, since that's where many of the shutdown/restart messages are coming from

Thanks, it is already done, but not "INT: Sending ..." messages that reside in init binary file.
Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.