summaryrefslogtreecommitdiff
path: root/.profile
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2011-10-16 18:38:16 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2011-10-16 18:38:16 -0400
commitb273cc64b722c2a46befa65ed0e389d60bd83b2e (patch)
treed581bb602deb0b222e673494138ff69c9b51c56f /.profile
parent70e1364f596cfdfcbecd28a07a48630cc62a4c90 (diff)
only run alsactl in .profile if it exists.
Diffstat (limited to '.profile')
-rw-r--r--.profile4
1 files changed, 3 insertions, 1 deletions
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