Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Shell Skript für ._cfg* Files [solved]
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
dot
Guru
Guru


Joined: 05 May 2003
Posts: 335
Location: Germany

PostPosted: Mon Mar 29, 2004 8:43 am    Post subject: Shell Skript für ._cfg* Files [solved] Reply with quote

Halli Hallo,

nachdem ich jetzt mein Xfree mal auf den aktuellen Stand gebracht habe, hab ich
jetzt diesen Mist:
Code:
 * IMPORTANT: 17 config files in /etc need updating.
 * IMPORTANT: 103 config files in /usr/X11R6/lib/X11/xkb need updating.

Beim emergen von irgendwelchen Sachen. Da ich in diesen Configfiles nix
verändert habe, würde ich doch gerne die alten Version dieser Dateien mit
den neuen Versionen ersetzen, also in etwa sowas:
Code:

for i in `find -name ._cfg*`
do
  mv $i #nach $i ohne das ._cfg0000_
done


Hat da jemmand schon mal so ein Skript geschrieben?

Grüße

Flo

Edit:
Ich gehe doch richtig in der Annahme, dass die neuen Configfiles in den ._cfg*
Dateien drin sind?


Last edited by dot on Mon Mar 29, 2004 8:57 am; edited 1 time in total
Back to top
View user's profile Send private message
Genone
Retired Dev
Retired Dev


Joined: 14 Mar 2003
Posts: 9559
Location: beyond the rim

PostPosted: Mon Mar 29, 2004 8:44 am    Post subject: Reply with quote

Jepp, nennt sich etc-update und ist Teil von Portage.
Back to top
View user's profile Send private message
sirro
Veteran
Veteran


Joined: 20 Jul 2003
Posts: 1472
Location: aachen.nrw.de.eu

PostPosted: Mon Mar 29, 2004 8:48 am    Post subject: Re: Shell Skript für ._cfg* Files Reply with quote

dot wrote:
Hat da jemmand schon mal so ein Skript geschrieben?

sowas wie /usr/sbin/etc-update? ;-)

dot wrote:
Ich gehe doch richtig in der Annahme, dass die neuen Configfiles in den ._cfg* Dateien drin sind?

Ja sind sie, aber man sollte aufpassen mit dem einfachen überschreiben, da die alten Configs immerhin die eigenen Einstellungen beinhalten und die neuen einfacher Standard sind. Dafür zeigt etc-update auf Wunsch diffs an, damit man entscheiden kann was geschehen soll.
Back to top
View user's profile Send private message
dot
Guru
Guru


Joined: 05 May 2003
Posts: 335
Location: Germany

PostPosted: Mon Mar 29, 2004 8:57 am    Post subject: Reply with quote

You made my day :))
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) 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