From 3e654f8c9fcb2c80a39c588dd1a35669d34c4a38 Mon Sep 17 00:00:00 2001 From: wolf Date: Tue, 27 Apr 2004 16:01:22 +0000 Subject: [PATCH] - 2.6.x support - rel 5 Changed files: emu10k1-utils.spec -> 1.25 --- emu10k1-utils.spec | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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) -- 2.44.0