Deploy /etc/lsb-base-logging.sh
[grml-live.git] / etc / grml / fai / config / files / etc / lsb-base-logging.sh / GRMLBASE
diff --git a/etc/grml/fai/config/files/etc/lsb-base-logging.sh/GRMLBASE b/etc/grml/fai/config/files/etc/lsb-base-logging.sh/GRMLBASE
new file mode 100644 (file)
index 0000000..d7c4223
--- /dev/null
@@ -0,0 +1,22 @@
+# This file was deployed via grml-live's
+# ${GRML_FAI_CONFIG}/config/scripts/GRMLBASE/20-sudo script, using
+# ${GRML_FAI_CONFIG}/config/files/etc/lsb-base-logging.sh/GRMLBASE
+
+if log_use_fancy_output; then
+  __LSB_PFX="$(tput -S << EOGREEN
+  bold
+  setaf 2
+EOGREEN
+  ) * $(tput -S << EONORMAL
+  sgr0
+  op
+EONORMAL
+  )"
+else
+  __LSB_PFX=" * "
+fi
+
+log_daemon_msg_pre() {
+  printf "${__LSB_PFX}"
+}
+