diff options
Diffstat (limited to 'abs/core-testing/alsa-utils/alsa')
-rwxr-xr-x | abs/core-testing/alsa-utils/alsa | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/abs/core-testing/alsa-utils/alsa b/abs/core-testing/alsa-utils/alsa index e1d6f28..08f76af 100755 --- a/abs/core-testing/alsa-utils/alsa +++ b/abs/core-testing/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) |