Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to update files
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
muybien
n00b
n00b


Joined: 13 Jul 2002
Posts: 10

PostPosted: Wed Jul 24, 2002 1:46 am    Post subject: How to update files Reply with quote

I need to update the following files
/etc/modules.d/._cfg0000_alsa
/etc/init.d/._cfg0000_alsasound.

What is the proper command?
Back to top
View user's profile Send private message
mrchuckles
Tux's lil' helper
Tux's lil' helper


Joined: 09 Jul 2002
Posts: 125
Location: Severn, MD

PostPosted: Wed Jul 24, 2002 1:54 am    Post subject: Reply with quote

There isn't one. You're supposed to merge any changes yourself, so as not to overwrite customizations you've made to configuration files. If you didn't change anything in the original file, it's usually safe to just copy over the new one.
Back to top
View user's profile Send private message
Naan Yaar
Bodhisattva
Bodhisattva


Joined: 27 Jun 2002
Posts: 1549

PostPosted: Wed Jul 24, 2002 2:05 am    Post subject: Reply with quote

It is not so bleak :)

You can emerge gentoolkit and then use the tool "etc-update" that will let you do it semi-automatically.
Back to top
View user's profile Send private message
rommel
Veteran
Veteran


Joined: 19 Apr 2002
Posts: 1145
Location: Williamsburg Virginia

PostPosted: Wed Jul 24, 2002 2:18 am    Post subject: Reply with quote

just use diff to see how the two files differ from one another then make the corrections to the newer and mv it
Back to top
View user's profile Send private message
Naan Yaar
Bodhisattva
Bodhisattva


Joined: 27 Jun 2002
Posts: 1549

PostPosted: Wed Jul 24, 2002 2:37 am    Post subject: Reply with quote

Dangerous:
If you didn't touch any files under /etc and you are ok with them being updated, you can do:
Code:

for x in `find /etc -iname '._cfg????_*'`; do mv $x ${x/._cfg????_/}; done


Make sure you check what files are affected by doing:
Code:

find /etc -iname '._cfg????_*'


Be careful not to overwrite any files that you want to keep.
Back to top
View user's profile Send private message
voided
n00b
n00b


Joined: 18 Apr 2002
Posts: 8

PostPosted: Wed Jul 24, 2002 8:24 am    Post subject: gentoolkit Reply with quote

emerge gentoolkit [app-admin/gentoolkit]

it has etc-update a nice litle util to update those files

=]
Back to top
View user's profile Send private message
water
Guru
Guru


Joined: 19 Jun 2002
Posts: 387
Location: Zierikzee, The Netherlands

PostPosted: Wed Jul 24, 2002 3:47 pm    Post subject: Re: gentoolkit Reply with quote

voided wrote:
emerge gentoolkit [app-admin/gentoolkit]

it has etc-update a nice litle util to update those files

=]


Maybe a stupid question, but how does that work? The only thing I see is the difference between the old and the new one, by pressing the number. If I want to stop the program, I have to use Control-Z, because I don't see another option.

Maybe something wrong with my gentoolkit, or with etc-update?

EDIT: there is something wrong. Looking at this, i'm missing the last five lines.

Some known problem? (I'll try to use the options, maybe it will work :? )
_________________
Groeten uit Holland
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum