SPECS: EMCpower.spec - chkconfig PowerPath for now - drop unused p...
glen
glen at pld-linux.org
Tue May 29 16:08:36 CEST 2007
Author: glen Date: Tue May 29 14:08:36 2007 GMT
Module: SPECS Tag: HEAD
---- Log message:
- chkconfig PowerPath for now
- drop unused pre scriptlet
---- Files affected:
SPECS:
EMCpower.spec (1.21 -> 1.22)
---- Diffs:
================================================================
Index: SPECS/EMCpower.spec
diff -u SPECS/EMCpower.spec:1.21 SPECS/EMCpower.spec:1.22
--- SPECS/EMCpower.spec:1.21 Tue May 29 15:37:56 2007
+++ SPECS/EMCpower.spec Tue May 29 16:08:30 2007
@@ -37,6 +37,7 @@
NoSource: 0
NoSource: 1
Patch0: %{name}-init.patch
+Requires(post,preun): /sbin/chkconfig
Obsoletes: EMCpower.LINUX
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -166,36 +167,13 @@
%clean
rm -rf $RPM_BUILD_ROOT
-%if 0
-%verifyscript
-echo "These PowerPath modules are installed"
-/sbin/lsmod | head -n 1
-/sbin/lsmod | grep emc
-echo "DONE"
-
-%pre
-# Check - Only install on a 2.6 kernel
-expr `uname -r` : '2\.6' > /dev/null
-if [ $? -ne 0 ]; then
- echo "This PowerPath package does not support this kernel."
- exit 1
-fi
+%post
+/sbin/chkconfig --add PowerPath
-# Check - Make sure no devices are in use.
-if [ "`/sbin/lsmod | grep -w emcp`" != "" ]; then
- /sbin/powermt save > /dev/null 2>&1
- /sbin/powermt remove dev=all > /dev/null 2>&1
- if [ "`powermt display dev=all 2>&1 | grep "not found"`" = "" ]; then
- echo "Unable to remove devices from the PowerPath configuration."
- echo "Please make sure no PowerPath devices are in use and retry."
- /sbin/powermt config > /dev/null 2>&1
- /sbin/powermt load > /dev/null 2>&1
- exit 1
- fi
- /sbin/powermt config > /dev/null 2>&1
- /sbin/powermt load > /dev/null 2>&1
+%preun
+if [ "$1" = "0" ]; then
+ /sbin/chkconfig --del PowerPath
fi
-%endif
%post -n kernel-block-emc
%depmod %{_kernel_ver}
@@ -272,6 +250,10 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.22 2007/05/29 14:08:30 glen
+- chkconfig PowerPath for now
+- drop unused pre scriptlet
+
Revision 1.21 2007/05/29 13:37:56 glen
- kernel ver hacks
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/EMCpower.spec?r1=1.21&r2=1.22&f=u
More information about the pld-cvs-commit
mailing list