]> git.pld-linux.org Git - packages/emu10k1-utils.git/blobdiff - emu10k1-utils.spec
- 2.6.x support
[packages/emu10k1-utils.git] / emu10k1-utils.spec
index 6e79e593a241f320278df09094a8e9c7feb9a354..b9b2494140d8e56ccea7ed59e72e4710ac109b69 100644 (file)
@@ -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)
This page took 0.043892 seconds and 4 git commands to generate.