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%