From 1c477d2c79c5879a2f65070d6237853da95b8ec0 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Tue, 19 May 2020 09:12:30 +0300 Subject: [PATCH] rc.lib: Fix ugly messages. Closes #17 --- lib/init/rc.lib | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/init/rc.lib b/lib/init/rc.lib index 04889a4..b914ccf 100644 --- a/lib/init/rc.lib +++ b/lib/init/rc.lib @@ -5,11 +5,11 @@ # the rc.boot and rc.shutdown scripts. log() { - printf '\033[31;1m=>\033[m %s\n' "$@" | + printf '\033[31;1m=>\033[m %s\n' "$@" # Additionally send all messages to /dev/kmsg so that they # appear in 'dmesg' and can be read post-boot. - tee /dev/kmsg 2>/dev/null + printf '=> %s\n' "$@" 2>/dev/null > /dev/kmsg } mounted() {