Skip to contentSkip to conversation

remove udev from runlevels on uninstall

PATCH Applied Bill Nottingham 3 participants 3 messages Dec 16, 2003

lore
Share & tools
lore
#0 lore raw
Quoted 17 lines · Rob Love

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.spec line 33

Quoted 8 lines
udev.spec +3 -0
@@ -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
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

#1 lore raw
Quoted 4 lines · Bill Nottingham

%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(+)
udev.spec +5 -0
diff -urN udev-008/udev.spec udev/udev.spec
@@ -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_id78&alloc_id371&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

Applied
#2 lore raw
In reply to Bill Nottingham
Quoted 11 lines · Rob Love
Quoted 4 lines · Bill Nottingham

%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_id78&alloc_id371&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel