chiark / gitweb /
[PATCH] remove udev from runlevels on uninstall
authorrml@ximian.com <rml@ximian.com>
Wed, 17 Dec 2003 07:31:16 +0000 (23:31 -0800)
committerGreg KH <gregkh@suse.de>
Wed, 27 Apr 2005 04:13:08 +0000 (21:13 -0700)
I guess we should run 'chkconfig --del udev' on removal to clear out the
now-stale udev entries, if any.

udev.spec

index 516239bc6d4186cad2a2473f474d16b9aa637b9e..3f71e1452c9597d6f184627daf4d96b2bb0f7980 100644 (file)
--- a/udev.spec
+++ b/udev.spec
@@ -26,6 +26,11 @@ make DESTDIR=$RPM_BUILD_ROOT install
 %post
 /sbin/chkconfig --add udev
 
 %post
 /sbin/chkconfig --add udev
 
+%postun
+if [ $1 = 0 ]; then
+       /sbin/chkconfig --del udev
+fi
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %clean
 rm -rf $RPM_BUILD_ROOT