Customized Boot Up Screen

Posted: August 7, 2013 in Uncategorized
/etc/init.d/functions This file contains functions to be used by most or all shell scripts in the /etc/init.d directory. In this file echo_success & echo_failure functions handles the status of the service. You can modify this function as per your suit.

echo_success() {
  [ “$BOOTUP” = “color” ] && $MOVE_TO_COL
  echo -n “{”  
  [ “$BOOTUP” = “color” ] && $SETCOLOR_SUCCESS
  echo -n $” SUCCEED  “
  [ “$BOOTUP” = “color” ] && $SETCOLOR_NORMAL
  echo -n “}”             
  echo -ne “\r”           
  return 0                
}                                                          
echo_failure() {               
  [ “$BOOTUP” = “color” ] && $MOVE_TO_COL
  echo -n “{”             
  [ “$BOOTUP” = “color” ] && $SETCOLOR_FAILURE
  echo -n $”DEAD”     
  [ “$BOOTUP” = “color” ] && $SETCOLOR_NORMAL
  echo -n “}”          
  echo -ne “\r”        
  return 1     
}              

In above example I have changed “[” to “{” , “OK” to “SUCCEED” and “FAILED” to “DEAD”

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s