Changing the look of status messages at boot
by oscar_649 from LinuxQuestions.org on (#580VS)
Hi all!
I would like to change the the look of status messages coming up while the boot sequence.
As I see, those are set in /etc/rc.d/init.d/functions. Here's an excerpt of the file:
Code:# Read in our configuration
if [ -z "${BOOTUP:-}" ]; then
if [ -f /etc/sysconfig/init ]; then
. /etc/sysconfig/init
else
# verbose ->> very (very!) old bootup look (prior to RHL-6.0?)
# color ->> default bootup look
# other ->> default bootup look without ANSI colors or positioning
BOOTUP=color
# Column to start "[ OK ]" label in:
RES_COL=60
# terminal sequence to move to that column:
MOVE_TO_COL="echo -en \\033[${RES_COL}G"
# Terminal sequence to set color to a 'success' (bright green):
SETCOLOR_SUCCESS="echo -en \\033[1;36m"For a test I changed:
[ OK ] to [ BLABLA]
or
SETCOLOR_SUCCESS="echo -en \\033[1;31m"
but there's no change at boot.
My question is if there's a way to apply those settings without building a new kernel or similar? Or is this a systemd thing?
I have in mind that I have done something like that some 20 years ago.
Btw.: I have no /etc/sysconfig/init.
Greetings
Jens


I would like to change the the look of status messages coming up while the boot sequence.
As I see, those are set in /etc/rc.d/init.d/functions. Here's an excerpt of the file:
Code:# Read in our configuration
if [ -z "${BOOTUP:-}" ]; then
if [ -f /etc/sysconfig/init ]; then
. /etc/sysconfig/init
else
# verbose ->> very (very!) old bootup look (prior to RHL-6.0?)
# color ->> default bootup look
# other ->> default bootup look without ANSI colors or positioning
BOOTUP=color
# Column to start "[ OK ]" label in:
RES_COL=60
# terminal sequence to move to that column:
MOVE_TO_COL="echo -en \\033[${RES_COL}G"
# Terminal sequence to set color to a 'success' (bright green):
SETCOLOR_SUCCESS="echo -en \\033[1;36m"For a test I changed:
[ OK ] to [ BLABLA]
or
SETCOLOR_SUCCESS="echo -en \\033[1;31m"
but there's no change at boot.
My question is if there's a way to apply those settings without building a new kernel or similar? Or is this a systemd thing?
I have in mind that I have done something like that some 20 years ago.
Btw.: I have no /etc/sysconfig/init.
Greetings
Jens