From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bill Nottingham Date: Tue, 16 Dec 2003 17:59:21 +0000 Subject: Re: [patch] remove udev from runlevels on uninstall Message-Id: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org Rob Love (rml@ximian.com) said: > Greg, > > I guess we should run 'chkconfig --del udev' on removal to clear out the > now-stale udev entries, if any. > > Patch below, on top of my previous > > Rob Love > > > udev.spec | 3 +++ > 1 files changed, 3 insertions(+) > > diff -urN udev-008/udev.spec udev/udev.spec > --- udev-008/udev.spec 2003-12-16 12:04:49.981846152 -0500 > +++ udev/udev.spec 2003-12-16 12:06:08.177958536 -0500 > @@ -26,6 +26,9 @@ > %post > /sbin/chkconfig --add udev > > +%postun > +/sbin/chkconfig --del udev > + > %clean > rm -rf $RPM_BUILD_ROOT Actually: %postun if [ $1 = 0 ]; then /sbin/chkconfig --del udev fi That only removes it on the last uninstall, as opposed to on every upgrade. Bill ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id78&alloc_id371&op=click _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel