wok rev 21789

openal: fix post_install for tank
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Jul 24 15:41:47 2019 +0200 (2019-07-24)
parents bc1e57eee4df
children e66efc062996
files openal/receipt
line diff
     1.1 --- a/openal/receipt	Wed Jul 24 15:21:45 2019 +0200
     1.2 +++ b/openal/receipt	Wed Jul 24 15:41:47 2019 +0200
     1.3 @@ -32,10 +32,10 @@
     1.4  # Pre and post install commands for Tazpkg.
     1.5  post_install()
     1.6  {
     1.7 +	[ -s $1/etc/rcS.conf ] &&
     1.8  	case " $(. $1/etc/rcS.conf; echo $LOAD_MODULES) " in
     1.9  	*\ snd-pcm-oss\ *) ;;
    1.10 -	*) [ -s $1/etc/rcS.conf ] &&
    1.11 -		sed -i 's|LOAD_MODULES="|&snd-pcm-oss ' $1/etc/rcS.conf
    1.12 -	   [ "$1" ] || modprobe snd-pcm-oss;;
    1.13 +	*) sed -i 's|LOAD_MODULES="|&snd-pcm-oss ' $1/etc/rcS.conf ;;
    1.14  	esac
    1.15 +	[ "$1" ] || modprobe snd-pcm-oss 2> /dev/null || true
    1.16  }