summaryrefslogtreecommitdiffstats
path: root/abs/core/alsa-utils/alsa
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core/alsa-utils/alsa')
-rwxr-xr-xabs/core/alsa-utils/alsa4
1 files changed, 2 insertions, 2 deletions
diff --git a/abs/core/alsa-utils/alsa b/abs/core/alsa-utils/alsa
index e1d6f28..08f76af 100755
--- a/abs/core/alsa-utils/alsa
+++ b/abs/core/alsa-utils/alsa
@@ -19,13 +19,13 @@ case "$1" in
if [ -e /sys/module/snd_ac97_codec/parameters/power_save \
-a $POWERSAVE -ne 0 ]; then
echo $POWERSAVE > /sys/module/snd_ac97_codec/parameters/power_save
- echo 1 > /dev/dsp
+ [ -c /dev/dsp ] && echo 1 > /dev/dsp
fi
if [ -e /sys/module/snd_hda_intel/parameters/power_save \
-a $POWERSAVE -ne 0 ]; then
echo $POWERSAVE > /sys/module/snd_hda_intel/parameters/power_save
- echo 1 > /dev/dsp
+ [ -c /dev/dsp ] && echo 1 > /dev/dsp
fi
;;
stop)