diff --git a/alsa-init.sh b/alsa-init.sh index dc61dc1..07a2b75 100644 --- a/alsa-init.sh +++ b/alsa-init.sh @@ -5,10 +5,8 @@ test -s /var/lib/alsa/asound.state && /usr/sbin/alsactl -F restore $1 >/dev/null 2>&1 # increase buffer-preallocation size (for PA) if [ -f /proc/asound/card$1/pcm0p/sub0/prealloc_max ]; then - pmax=$(< /proc/asound/card$1/pcm0p/sub0/prealloc_max) - if [ $pmax -gt 1024 ]; then + [ $(cat /proc/asound/card$1/pcm0p/sub0/prealloc_max) -le 1024 ] || echo 1024 > /proc/asound/card$1/pcm0p/sub0/prealloc - fi fi exit 0 diff --git a/alsa.changes b/alsa.changes index cdab268..a0970a2 100644 --- a/alsa.changes +++ b/alsa.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sun Nov 16 18:10:00 UTC 2014 - Led + +- fix bashism in alsa-init.sh scripts + ------------------------------------------------------------------- Fri Oct 17 11:48:23 CEST 2014 - tiwai@suse.de