From: hackbard Date: Sat, 27 Aug 2005 17:34:50 +0000 (+0000) Subject: change to kernel config backup X-Git-Url: https://hackdaworld.org/gitweb/?a=commitdiff_plain;h=d8baf2f1d4f9d7abd0a2990c2819f070275cfcc1;p=scripts%2Fscripts.git change to kernel config backup --- diff --git a/fai_backup.sh b/fai_backup.sh index 314f053..110d871 100755 --- a/fai_backup.sh +++ b/fai_backup.sh @@ -4,7 +4,7 @@ configcp() { file=$1 mkdir -p $configdir/$file - cp -v $file $configdir/$file/$myip + rsync -av $file $configdir/$file/$myip } backupcp() { cat=$1 @@ -64,8 +64,8 @@ else fi # config: -for configfile in /usr/src/kernel/*config; do - configcp $configfile +for configfile in /usr/src/linux/.config; do + [ -f $configfile ] && configcp $configfile done for onefile in profile network kernel wireless; do configfile="/etc/conf/$onefile"