Update of /cvsroot/devil-linux/build/scripts/scripts
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4036/scripts/scripts
Modified Files:
upgrade-config
Log Message:
upgrade-config now show some file information in the status line
Index: upgrade-config
===================================================================
RCS file: /cvsroot/devil-linux/build/scripts/scripts/upgrade-config,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- upgrade-config 17 Feb 2004 02:26:38 -0000 1.14
+++ upgrade-config 2 Mar 2004 01:59:15 -0000 1.15
@@ -93,7 +93,7 @@
mkdir newconfig || exit 1
tar -xjf /config/etc.tar.bz2 -C newconfig
-for f in $(find etc root -type f -print -ctime -3650)
+for f in $(find etc root -type f -mtime -3650 -print)
do
onoff="on"
echo -n "."
@@ -115,7 +115,8 @@
[ "$(expr substr "$f" 1 12)" = "etc/modules/" ] && continue
[ "$(expr substr "$f" 1 20)" = "etc/sysconfig/config" ] && continue
[ "$(expr substr "$f" 1 17)" = "etc/ssh/ssh_host_" ] && onoff="on"
- cmp -s $f newconfig/$f || echo $f \"\" $onoff \"$f\" >> $TMPD
+ finfo=$(ls -la $f)
+ cmp -s $f newconfig/$f || echo $f \"\" $onoff \"$finfo\" >> $TMPD
done
msgbox "Please read:" "The next screen will let you select which of your old config files you want to copy to your new configuration \n\nBe VERY CAREFUL to only copy files you have customized. Copying other files could cause severe problems.\n\nNote: Selecting \"Help\" will display info about the current file, but upon return you will lose all selections made."
|