# zeld At freaknet DOT org # Sun Mar 9 15:35:42 CET 2008 ____ ___ _____ _____ ______ __ | _ \ / _ \| ____|_ _| _ \ \ / / | |_) | | | | _| | | | |_) \ V / | __/| |_| | |___ | | | _ < | | |_| \___/|_____| |_| |_| \_\|_| _ _ _ __ ___ (_)_ __ (_) | '_ ` _ \| | '_ \| | | | | | | | | | | | | |_| |_| |_|_|_| |_|_| _ _ _____ _______ ___ | | | |/ _ \ \ / /_ _/ _ \ | |_| | | | \ \ /\ / / | || | | | | _ | |_| |\ V V / | || |_| | |_| |_|\___/ \_/\_/ |_| \___/ __ _ \ \ (_) | | _ | | (_) | | /_/ I like see colors when my machine boot! For this reason i've find a solution for get colorated boot log on a debian sistem!! : D Modify /lib/lsb/init-funcion In particulary search these lines : if log_use_fancy_output; then RED=`$TPUT setaf 1` NORMAL=`$TPUT op` if [ $1 -eq 0 ]; then echo "." And replace whit these : ********** Copy here ***************+ if log_use_fancy_output; then RED=`$TPUT setaf 1` NORMAL=`$TPUT op` #Colors COLS=$($TPUT cols) COL=$(($COLS-8)) UP=$($TPUT cuu1) END=$($TPUT hpa $COL) START=$($TPUT hpa 0) RED=$($TPUT setaf 1) NORMAL=$($TPUT op) GREEN=$($TPUT setaf 2) LBLUE=$($TPUT bold; $TPUT setaf 4) ## End colors section if [ $1 -eq 0 ]; then echo "$UP$END${LBLUE}:: ${GREEN}ok${LBLUE} :: ${NORMAL}" ************* STOP ************************+ Save and exit. For try and use other color add one or more of this line after the section #Colors BLACK=$($TPUT setaf 0) BACKBG=$($TPUT setab 0) DARKGREY=$($TPUT bold ; $TPUT setaf 0) LIGHTGREY=$($TPUT setaf 7) LIGHTGREYBG=$($TPUT setab 7) WHITE=$($TPUT bold ; $TPUT setaf 7) RED=$($TPUT setaf 1) REDBG=$($TPUT setab 1) LIGHTRED=$($TPUT bold ; $TPUT setaf 1) GREEN=$($TPUT setaf 2) GREENBG=$($TPUT setab 2) LIGHTGREEN="$($TPUT bold ; $TPUT setaf 2) BROWN=$($TPUT setaf 3) BROWNBG=$($TPUT setab 3) YELLOW=$($TPUT bold ; $TPUT setaf 3) BLUR=$($TPUT setaf 4) BLURBG=$($TPUT setab 4) LIGHTBLUE=$($TPUT bold ; $TPUT setaf 4) PURPLE=$($TPUT setaf 5) PURPLEBG=$($TPUT setab 5) Pink=$($TPUT bold ; $TPUT setaf 5) CYAN=$($TPUT setaf 6) CYANBG=$($TPUT setab 6) LIGHTCYAN=$($TPUT bold ; $TPUT setaf 6) and repalce in : echo "$UP$END${LBLUE}:: ${GREEN}ok${LBLUE} :: ${NORMAL}" the color in the { } (LBLUE, GREEN) whit one color. For simplify the procedure you can use this patch. But i'm not sure that it work! Patch: copy and paste these lines in a file named init_function.patch --- init-functions 2008-03-08 12:38:38.000000000 +0100 +++ init-functions_risistemato 2008-03-09 14:12:56.000000000 +0100 @@ -248,12 +248,27 @@ # Only do the fancy stuff if we have an appropriate terminal # and if /usr is already mounted - if log_use_fancy_output; then - RED=`$TPUT setaf 1` - NORMAL=`$TPUT op` + # + if log_use_fancy_output; then + + ##Colors section + COLS=$($TPUT cols) + COL=$(($COLS-8)) + UP=$($TPUT cuu1) + END=$($TPUT hpa $COL) + START=$($TPUT hpa 0) + RED=$($TPUT setaf 1) + NORMAL=$($TPUT op) + GREEN=$($TPUT setaf 2) + LBLUE=$($TPUT bold; $TPUT setaf 4) + + ## End colors section + if [ $1 -eq 0 ]; then - echo "." - else + + echo "$UP$END${LBLUE}( ${GREEN}ok${LBLUE} )${NORMAL}" + + else /bin/echo -e " ${RED}failed!${NORMAL}" fi else for apply this patch you must to go in /lib/lsb/ cd /lib/lsb patch -p0 < /dir_of_patch/init_function.patch ENJOY! :")