SPECS: udev.spec - start udev only when dev package is completely ...

glen glen at pld-linux.org
Sun Sep 18 14:09:01 CEST 2005


Author: glen                         Date: Sun Sep 18 12:09:01 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- start udev only when dev package is completely removed; rel 3

---- Files affected:
SPECS:
   udev.spec (1.95 -> 1.96) 

---- Diffs:

================================================================
Index: SPECS/udev.spec
diff -u SPECS/udev.spec:1.95 SPECS/udev.spec:1.96
--- SPECS/udev.spec:1.95	Sat Sep 17 16:52:34 2005
+++ SPECS/udev.spec	Sun Sep 18 14:08:55 2005
@@ -16,7 +16,7 @@
 Summary(pl):	Implementacja devfs w przestrzeni użytkownika
 Name:		udev
 Version:	070
-Release:	2
+Release:	3
 Epoch:		1
 License:	GPL
 Group:		Base
@@ -149,11 +149,13 @@
 rm -rf $RPM_BUILD_ROOT
 
 %triggerpostun -- dev
-# need to kill and restart udevd as after obsoleting dev package the
-# /dev tree will remain empty. umask is needed as otherwise udev will
-# create devices with strange permissions (udev bug probably)
-umask 000
-/sbin/start_udev
+if [ "$2" = 0 ]; then
+	# need to kill and restart udevd as after obsoleting dev package the
+	# /dev tree will remain empty. umask is needed as otherwise udev will
+	# create devices with strange permissions (udev bug probably)
+	umask 000
+	/sbin/start_udev || exit 0
+fi
 
 %files
 %defattr(644,root,root,755)
@@ -205,6 +207,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.96  2005/09/18 12:08:55  glen
+- start udev only when dev package is completely removed; rel 3
+
 Revision 1.95  2005/09/17 14:52:34  freetz
 - added firmware rules, rel.2
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/udev.spec?r1=1.95&r2=1.96&f=u




More information about the pld-cvs-commit mailing list