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 516239b..3f71e14 100644 (file)
--- a/udev.spec
+++ b/udev.spec
@@ -26,6 +26,11 @@ make DESTDIR=$RPM_BUILD_ROOT install
 %post
 /sbin/chkconfig --add udev
 
+%postun
+if [ $1 = 0 ]; then
+       /sbin/chkconfig --del udev
+fi
+
 %clean
 rm -rf $RPM_BUILD_ROOT