|
From: Bruce S. <bw...@ar...> - 2003-10-13 19:43:39
|
> >I've found one thing that is a pain, upgrading to a new version CD, > >plus also upgrading the configuration. > ... > Check if the file date is "Jan 1 1980", then it's an unmodified file. I played it safe and compared each individual file. > I would be very happy if you would get an update script working ! It seems to working on my system (not uploaded yet). Basically it untars the old etc file and the new etc file into different subdirectories, compares every file in old to new, gives you a list of which file(s) changed and asks which file(s) you'd like to copy to the new directory. Then it tars up a new etc config file. I really hated the thought of having to answer y/n for potentially dozens of files to copy over to the new config (like the old kernel "make config"), so I wrote it using "dialog", like the setup program. This lets you scroll back & forth though the list of changed files and check which file(s) to copy. Plus if you press the HELP button on a particular modified file, it does a "ls -l" on both old/new files, then does a "diff -u" on them, and then does a "less" on both files. The disadvantage is you need "dialog" installed on your desktop. Do you have a problem with that? Most distro's come with dialog (at least Redhat has come with it for quite a few releases), or the user can always download and install the dialog package ... - BS |