Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
rc.lib: Fix ugly messages. Closes #17
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanaraps committed May 19, 2020
1 parent fd8cbde commit 1c477d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/init/rc.lib
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 1c477d2

Please sign in to comment.