Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 1244

Summary: moved the configuration data in /usr/sbin/etc-update
Product: Gentoo Linux Reporter: Matthew Kennedy <mbkennedy>
Component: [OLD] Core systemAssignee: Karl Trygve Kalleberg (RETIRED) <karltk>
Status: RESOLVED FIXED    
Severity: enhancement CC: mbkennedy
Priority: High    
Version: 1.0 RC6 r14   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: etc-update.patch (based on etc-update in gentoolkit-0.1.5-r2)
etc-update.conf

Description Matthew Kennedy 2002-03-19 15:09:06 UTC
Howdy Gentoo developers,

I hacked up etc-update a bit by moving the configuration items (eg. rm_opts,
pager, diff_command etc.) out of /usr/sbin/etc-update and into a file
/etc/etc-update.conf. 

I find these changes handy because I liked to configure my pager for etc-update,
but I hated how the changes I made in /usr/sbin/etc-update got clobbered with
each new gentoolkit. With /etc/etc-update.conf under CONFIG_PROTECT, I no longer
have this problem.

Perhaps others will find these changes handy also, because I see the issue comes
up on gentoo-user a alot. Also, having a user edit a data-only config file as
opposed to a script in /usr/sbin/ makes more sense, in my opinion.

I am attaching 1) the diff of /usr/sbin/etc-update and 2) an example
/etc/etc-update.conf file.

Regards,
Matthew
Comment 1 Matthew Kennedy 2002-03-19 15:12:50 UTC
Created attachment 380 [details, diff]
etc-update.patch (based on etc-update in gentoolkit-0.1.5-r2)
Comment 2 Matthew Kennedy 2002-03-19 15:14:25 UTC
Created attachment 381 [details]
etc-update.conf

Example /etc/etc-update.conf config file. As you can see, I've cut and pasted
the configuration items straight out of /usr/sbin/etc-update.