# HG changeset patch # User Pascal Bellard # Date 1563975707 -7200 # Node ID 7d3d60e180e6aa7f8251fc03d2f2226751336cda # Parent bc1e57eee4dfa09b826a8e882a14cacfce2d5660 openal: fix post_install for tank diff -r bc1e57eee4df -r 7d3d60e180e6 openal/receipt --- a/openal/receipt Wed Jul 24 15:21:45 2019 +0200 +++ b/openal/receipt Wed Jul 24 15:41:47 2019 +0200 @@ -32,10 +32,10 @@ # Pre and post install commands for Tazpkg. post_install() { + [ -s $1/etc/rcS.conf ] && case " $(. $1/etc/rcS.conf; echo $LOAD_MODULES) " in *\ snd-pcm-oss\ *) ;; - *) [ -s $1/etc/rcS.conf ] && - sed -i 's|LOAD_MODULES="|&snd-pcm-oss ' $1/etc/rcS.conf - [ "$1" ] || modprobe snd-pcm-oss;; + *) sed -i 's|LOAD_MODULES="|&snd-pcm-oss ' $1/etc/rcS.conf ;; esac + [ "$1" ] || modprobe snd-pcm-oss 2> /dev/null || true }