* Re: [patch] remove udev from runlevels on uninstall
@ 2003-12-16 17:59 Bill Nottingham
2003-12-16 18:19 ` Rob Love
2003-12-16 23:32 ` Greg KH
0 siblings, 2 replies; 4+ messages in thread
From: Bill Nottingham @ 2003-12-16 17:59 UTC (permalink / raw)
To: linux-hotplug
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_id\x1278&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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [patch] remove udev from runlevels on uninstall
2003-12-16 17:59 [patch] remove udev from runlevels on uninstall Bill Nottingham
@ 2003-12-16 18:19 ` Rob Love
2003-12-16 23:32 ` Greg KH
1 sibling, 0 replies; 4+ messages in thread
From: Rob Love @ 2003-12-16 18:19 UTC (permalink / raw)
To: linux-hotplug
On Tue, 2003-12-16 at 12:59, Bill Nottingham wrote:
> %postun
> if [ $1 = 0 ]; then
> /sbin/chkconfig --del udev
> fi
Ah, much thanks, Bill.
Greg, revised patch is attached. This is on top of my first patch, but
not my second.
Thanks,
Rob Love
udev.spec | 5 +++++
1 files changed, 5 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 13:18:38.780566408 -0500
@@ -26,6 +26,11 @@
%post
/sbin/chkconfig --add udev
+%postun
+if [ $1 = 0 ]; then
+ /sbin/chkconfig --del udev
+fi
+
%clean
rm -rf $RPM_BUILD_ROOT
-------------------------------------------------------
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_id\x1278&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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [patch] remove udev from runlevels on uninstall
2003-12-16 17:59 [patch] remove udev from runlevels on uninstall Bill Nottingham
2003-12-16 18:19 ` Rob Love
@ 2003-12-16 23:32 ` Greg KH
1 sibling, 0 replies; 4+ messages in thread
From: Greg KH @ 2003-12-16 23:32 UTC (permalink / raw)
To: linux-hotplug
On Tue, Dec 16, 2003 at 01:19:31PM -0500, Rob Love wrote:
> On Tue, 2003-12-16 at 12:59, Bill Nottingham wrote:
>
> > %postun
> > if [ $1 = 0 ]; then
> > /sbin/chkconfig --del udev
> > fi
>
> Ah, much thanks, Bill.
>
> Greg, revised patch is attached. This is on top of my first patch, but
> not my second.
Applied, thanks.
greg k-h
-------------------------------------------------------
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_id\x1278&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
^ permalink raw reply [flat|nested] 4+ messages in thread
* [patch] remove udev from runlevels on uninstall
@ 2003-12-16 17:33 Rob Love
0 siblings, 0 replies; 4+ messages in thread
From: Rob Love @ 2003-12-16 17:33 UTC (permalink / raw)
To: linux-hotplug
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
-------------------------------------------------------
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_id\x1278&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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-12-16 23:32 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-12-16 17:59 [patch] remove udev from runlevels on uninstall Bill Nottingham
2003-12-16 18:19 ` Rob Love
2003-12-16 23:32 ` Greg KH
-- strict thread matches above, loose matches on Subject: below --
2003-12-16 17:33 Rob Love
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).