packages: module-init-tools/module-init-tools.spec - better trigger
arekm
arekm at pld-linux.org
Tue Aug 11 09:13:32 CEST 2009
Author: arekm Date: Tue Aug 11 07:13:32 2009 GMT
Module: packages Tag: HEAD
---- Log message:
- better trigger
---- Files affected:
packages/module-init-tools:
module-init-tools.spec (1.77 -> 1.78)
---- Diffs:
================================================================
Index: packages/module-init-tools/module-init-tools.spec
diff -u packages/module-init-tools/module-init-tools.spec:1.77 packages/module-init-tools/module-init-tools.spec:1.78
--- packages/module-init-tools/module-init-tools.spec:1.77 Tue Aug 11 09:06:29 2009
+++ packages/module-init-tools/module-init-tools.spec Tue Aug 11 09:13:26 2009
@@ -129,7 +129,14 @@
fi
%triggerun -- %{name} < 3.10
-[ -f /etc/modprobe.conf ] && mv /etc/modprobe.conf /etc/modprobe.d/modprobe.conf
+if [ -f /etc/modprobe.conf ]; then
+ mv -f /etc/modprobe.conf /etc/modprobe.conf.rpmsave
+ if [ -f /etc/modprobe.d/modprobe.conf ]; then
+ mv -f /etc/modprobe.conf /etc/modprobe.d/modprobe.conf.rpmnew
+ else
+ mv -f /etc/modprobe.conf /etc/modprobe.d/modprobe.conf
+ fi
+fi
%files
%defattr(644,root,root,755)
@@ -159,6 +166,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.78 2009/08/11 07:13:26 arekm
+- better trigger
+
Revision 1.77 2009/08/11 07:06:29 arekm
- up to 3.10
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/module-init-tools/module-init-tools.spec?r1=1.77&r2=1.78&f=u
More information about the pld-cvs-commit
mailing list