From 71ef3b8f911cff3231a41708a1baf63841d95360 Mon Sep 17 00:00:00 2001 From: Pierre Neidhardt Date: Fri, 27 Sep 2019 19:49:32 +0200 Subject: [PATCH] .profile: Remove systemd error log. --- .profile | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/.profile b/.profile index 8d58bcde..81102ec1 100644 --- a/.profile +++ b/.profile @@ -91,18 +91,9 @@ gpg-connect-agent updatestartuptty /bye >/dev/null ## Linux specific if [ "$(uname -o)" = "GNU/Linux" ] ; then ## Startup error log. - ## dmesg log_dmesg="$(dmesg | grep -i error)" [ -n "$log_dmesg" ] && echo "$log_dmesg" > "$HOME/errors-dmesg.log" || rm "$HOME/errors-dmesg.log" 2>/dev/null - ## systemd - if command -v systemctl >/dev/null 2>&1; then - count="$(systemctl show | awk -F= '$1=="NFailedUnits" {print $2; exit}')" - if [ $count -ne 0 ]; then - systemctl -l --failed > "$HOME/errors-systemd.log" - else - rm -f "$HOME/errors-systemd.log" - fi - fi + unset log_dmesg ## Set sound volume. (Useless when running Pulseaudio.) # amixer 2>/dev/null | grep -q PCM && amixer set PCM 100%