From e94b8f9718ff9276a9c19d7a984d781ef0ec97de71af11e2b80c3f029e24d028 Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Mon, 17 Nov 2014 13:53:19 +0000 Subject: [PATCH] Accepting request 261930 from home:Ledest:bashisms fix bashism in alsa-init.sh script OBS-URL: https://build.opensuse.org/request/show/261930 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/alsa?expand=0&rev=172 --- alsa-init.sh | 4 +--- alsa.changes | 5 +++++ 2 files changed, 6 insertions(+), 3 deletions(-) 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