[udev/f15/master] - version 167

Harald Hoyer harald at fedoraproject.org
Wed Mar 30 15:28:48 UTC 2011


commit 90347b2001f3341d541e9cad71c5f557d67d8403
Author: Harald Hoyer <harald at redhat.com>
Date:   Wed Mar 30 17:18:01 2011 +0200

    - version 167

 udev.spec |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/udev.spec b/udev.spec
index 35c5349..b88a4da 100644
--- a/udev.spec
+++ b/udev.spec
@@ -206,6 +206,7 @@ getent group floppy >/dev/null || /usr/sbin/groupadd -g 19 floppy || :
 if test -f /proc/1/exe -a -d /proc/1/root; then
      if test -x /usr/bin/stat -a \
 	     "$(/usr/bin/stat -Lc '%%D-%%i' /)" = "$(/usr/bin/stat -Lc '%%D-%%i' /proc/1/root)"; then
+	  /bin/systemctl stop udev.service >/dev/null 2>&1 || :
           if test -x /sbin/udevd -a -x /sbin/pidof ; then
                /sbin/udevadm control --stop-exec-queue
                pid=$(/sbin/pidof -c udevd)
@@ -223,19 +224,22 @@ fi
 exit 0
 
 %post
-# convert old database files
-/sbin/udevadm info --convert-db >/dev/null 2>&1 || :
+/bin/systemctl daemon-reload >/dev/null 2>&1 || :
 
 # start daemon if we are not in a chroot
 if test -f /proc/1/exe -a -d /proc/1/root; then
         if test "$(/usr/bin/stat -Lc '%%D-%%i' /)" = "$(/usr/bin/stat -Lc '%%D-%%i' /proc/1/root)"; then
-                /sbin/udevd -d
+		/bin/systemctl start udev.service >/dev/null 2>&1 || :
+                /sbin/udevd -d >/dev/null 2>&1 || :
                 /sbin/udevadm control --start-exec-queue || :
         fi
 fi
 
 exit 0
 
+%postun
+/bin/systemctl daemon-reload >/dev/null 2>&1 || :
+
 %post -n libudev -p /sbin/ldconfig
 %postun -n libudev -p /sbin/ldconfig
 


More information about the scm-commits mailing list