From d8baf2f1d4f9d7abd0a2990c2819f070275cfcc1 Mon Sep 17 00:00:00 2001 From: hackbard Date: Sat, 27 Aug 2005 17:34:50 +0000 Subject: [PATCH] change to kernel config backup --- fai_backup.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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" -- 2.39.2