From: rml@ximian.com Date: Wed, 17 Dec 2003 07:31:16 +0000 (-0800) Subject: [PATCH] remove udev from runlevels on uninstall X-Git-Tag: 009~8 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=600ee7f73e5381764803725e68a0f953bd2f46fd;ds=sidebyside [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. --- diff --git a/udev.spec b/udev.spec index 516239bc6..3f71e1452 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