Enhance lsb-base-logging styles for action messages
[grml-live.git] / etc / grml / fai / config / files / etc / lsb-base-logging.sh / GRMLBASE
index d7c4223..9a64413 100644 (file)
@@ -3,11 +3,11 @@
 # ${GRML_FAI_CONFIG}/config/files/etc/lsb-base-logging.sh/GRMLBASE
 
 if log_use_fancy_output; then
-  __LSB_PFX="$(tput -S << EOGREEN
+  __LSB_PFX="$($TPUT -S << EOGREEN
   bold
   setaf 2
 EOGREEN
-  ) * $(tput -S << EONORMAL
+  ) * $($TPUT -S << EONORMAL
   sgr0
   op
 EONORMAL
@@ -19,4 +19,9 @@ fi
 log_daemon_msg_pre() {
   printf "${__LSB_PFX}"
 }
-
+log_action_msg() {
+  printf "${__LSB_PFX}$@."
+}
+log_action_begin_msg() {
+  printf "${__LSB_PFX}$@... "
+}