summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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