Hi,
--- init-functions      2007-01-21 04:54:18.000000000 +0100
+++ /lib/lsb/init-functions     2007-04-15 21:24:55.000000000 +0200
@@ -247,12 +247,18 @@ log_end_msg () {
     # 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`
+        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)
         if [ $1 -eq 0 ]; then
-            echo "."
+            echo "$UP$END[ ${GREEN}ok${NORMAL} ]"
         else
-            /bin/echo -e " ${RED}failed!${NORMAL}"
+            /bin/echo -e "$UP$START $RED*$NORMAL$END[ ${RED}fail${NORMAL} ]"
         fi
     else
        if [ $1 -eq 0 ]; then

Would be another patch which looks a bit cleaner in my opionion.
Kind regards
Nico

-- 
Nico Golde - http://ngolde.de - [EMAIL PROTECTED] - GPG: 0x73647CFF
For security reasons, all text in this mail is double-rot13 encrypted.

Attachment: pgpzpj75S4ttL.pgp
Description: PGP signature

Reply via email to