Click to See Complete Forum and Search --> : which file stores the shutdown message?


WilliamWallace
12-16-2000, 05:58 PM
which file could i edit to change the traditional shutdown message to something more personal? Ex.
original:

#shutdown -r now

the system will shutdown now...

-------to-------
#shutdown -r now

this linux system will self destruct in __ seconds.

??????

klamath
12-16-2000, 06:48 PM
I believe you'd have to hack the sources for shutdown. Shouldn't be too hard. On my Debian system, '/sbin/shutdown' is part of the sysvinit package. Just get a copy of the source, grep through it for the printf() or similar line which displays the message, and change the text.

------------------
- Klamath
Get my GnuPG Key Here (http://klamath.dyndns.org/mykey.asc)
Looking for an open source project to contribute to? Check out the Better Bulletin Board (http://bbb.sourceforge.net)

WilliamWallace
12-17-2000, 12:24 AM
so i would do this?
cat sourcecode.file | grep printf shutdown message

??