override output of the status on the left side of the terminal
[grml-live.git] / etc / grml / fai / config / files / etc / lsb-base-logging.sh / GRMLBASE
1 # This file was deployed via grml-live's
2 # ${GRML_FAI_CONFIG}/config/scripts/GRMLBASE/20-sudo script, using
3 # ${GRML_FAI_CONFIG}/config/files/etc/lsb-base-logging.sh/GRMLBASE
4
5 # override output of the status on the left side of the terminal
6 # introduced in lsb-base >= 4.1+Debian1
7 log_end_msg_pre() { :; }
8 log_action_msg_pre() { :; }
9
10 if log_use_fancy_output; then
11   __LSB_PFX="$($TPUT -S << EOGREEN
12   bold
13   setaf 2
14 EOGREEN
15   ) * $($TPUT -S << EONORMAL
16   sgr0
17   op
18 EONORMAL
19   )"
20 else
21   __LSB_PFX=" * "
22 fi
23
24 log_daemon_msg_pre() {
25   printf "${__LSB_PFX}"
26 }
27 log_action_msg() {
28   printf "${__LSB_PFX}$@."
29 }
30 log_action_begin_msg() {
31   printf "${__LSB_PFX}$@... "
32 }