Re: Green [ ok ] messages
Originally Posted by
rasher
I was annoyed that during boot, only the status messages showing [fail] got coloured (red), so I created a very simple patch that makes the [ ok ] messages appear in green.
The patch applies to /lib/lsb/init-functions
Code:
--- init-functions.orig 2004-12-18 23:45:08.756780424 +0100
+++ init-functions 2004-12-18 23:44:52.699221544 +0100
@@ -190,9 +190,10 @@
END=`$TPUT hpa $COL`
START=`$TPUT hpa 0`
RED=`$TPUT setaf 1`
+ GREEN=`$TPUT setaf 2`
NORMAL=`$TPUT op`
if [ $1 -eq 0 ]; then
- echo "$UP$END[ ok ]"
+ echo "$UP$END[ ${GREEN}ok${NORMAL} ]"
else
echo -e "$UP$START $RED*$NORMAL$END[${RED}fail${NORMAL}]"
fi
I'm not at all sure this belongs in "Ubuntu Screenshots / Art Talk", but I figured it was about making Ubuntu pretty, and I didn't know where else to put it.
I know what you're talking about, and how to apply it, but howabout explaining how to apply the patch for those that don't know.
"For to me, to live is Christ and to die is gain." - Philippians 1:21 (NIV)
Bookmarks