Deploy /etc/lsb-base-logging.sh
authorChristian Hofstaedtler <ch@grml.org>
Wed, 16 Nov 2011 11:49:22 +0000 (12:49 +0100)
committerChristian Hofstaedtler <ch@grml.org>
Wed, 16 Nov 2011 11:49:22 +0000 (12:49 +0100)
This "brands" boot up a tiny little bit more.

etc/grml/fai/config/files/etc/lsb-base-logging.sh/GRMLBASE [new file with mode: 0644]
etc/grml/fai/config/scripts/GRMLBASE/42-branding

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}"
+}
+
index 9a16a4d..1f4f514 100755 (executable)
@@ -9,6 +9,7 @@
 set -u
 set -e
 
+fcopy -v /etc/lsb-base-logging.sh
 fcopy -v /usr/share/initramfs-tools/scripts/init-top/grml
 fcopy -v /usr/share/grml/desktop.jpg
 fcopy -v /usr/share/doc/grml-docs/startpage.html