X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=emu10k1-utils.spec;fp=emu10k1-utils.spec;h=b9b2494140d8e56ccea7ed59e72e4710ac109b69;hb=3e654f8c9fcb2c80a39c588dd1a35669d34c4a38;hp=6e79e593a241f320278df09094a8e9c7feb9a354;hpb=dce2cf18af880f67f3e57129e67c6c295f75c3b1;p=packages%2Femu10k1-utils.git diff --git a/emu10k1-utils.spec b/emu10k1-utils.spec index 6e79e59..b9b2494 100644 --- a/emu10k1-utils.spec +++ b/emu10k1-utils.spec @@ -3,7 +3,7 @@ Summary: Utils controlling emu10k1 processor Summary(pl): Narzêdzia kontroluj±ce procesor emu10k1 Name: emu10k1-utils Version: 0.9.4 -Release: 4 +Release: 5 License: GPL Group: Applications/Sound Source0: http://dl.sourceforge.net/emu10k1/emu-tools-%{version}.tar.gz @@ -148,15 +148,15 @@ rm -rf $RPM_BUILD_ROOT %post autoconfig umask 027 -grep "post-install emu10k1 /usr/bin/emu-script" /etc/modules.conf > /dev/null +grep "install emu10k1 /sbin/modprobe --ignore-install emu10k1 && { /usr/bin/emu-script; }" /etc/modprobe.conf > /dev/null if [ "$?" -eq "1" ]; then - echo "post-install emu10k1 /usr/bin/emu-script" >> /etc/modules.conf + echo "install emu10k1 /sbin/modprobe --ignore-install emu10k1 && { /usr/bin/emu-script; }" >> /etc/modprobe.conf fi %postun autoconfig umask 027 -grep -v "post-install emu10k1 /usr/bin/emu-script" /etc/modules.conf > /etc/modules.conf.new -mv -f /etc/modules.conf.new /etc/modules.conf +grep -v "install emu10k1 /sbin/modprobe --ignore-install emu10k1 && { /usr/bin/emu-script; }" /etc/modprobe.conf > /etc/modprobe.conf.new +mv -f /etc/modprobe.conf.new /etc/modprobe.conf %files %defattr(644,root,root,755)