summaryrefslogtreecommitdiff
path: root/udev.spec
diff options
context:
space:
mode:
authorrml@ximian.com <rml@ximian.com>2003-12-16 23:31:16 -0800
committerGreg KH <gregkh@suse.de>2005-04-26 21:13:08 -0700
commit600ee7f73e5381764803725e68a0f953bd2f46fd (patch)
treef5d4c6e823e0810e5eb9ce9100b96501a298ab23 /udev.spec
parent316c51507724406f2ded06d067f55e867df90b15 (diff)
[PATCH] remove udev from runlevels on uninstall
I guess we should run 'chkconfig --del udev' on removal to clear out the now-stale udev entries, if any.
Diffstat (limited to 'udev.spec')
-rw-r--r--udev.spec5
1 files changed, 5 insertions, 0 deletions
diff --git a/udev.spec b/udev.spec
index 516239bc6d..3f71e1452c 100644
--- 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