From b273cc64b722c2a46befa65ed0e389d60bd83b2e Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sun, 16 Oct 2011 18:38:16 -0400 Subject: only run alsactl in .profile if it exists. --- .profile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.profile b/.profile index 2d78601..36a3ec5 100644 --- a/.profile +++ b/.profile @@ -30,4 +30,6 @@ if [ -f "$HOME/.selected_editor" ]; then export VISUAL="${VISUAL:-$SELECTED_EDITOR}" fi -alsactl --file $HOME/.alsa.save restore &> /dev/null || true +if [ -x "`which alsactl`" ]; then + alsactl --file $HOME/.alsa.save restore &> /dev/null || true +fi -- cgit v1.2.3-2-g168b