configcp() {
file=$1
mkdir -p $configdir/$file
- cp -v $file $configdir/$file/$myip
+ rsync -av $file $configdir/$file/$myip
}
backupcp() {
cat=$1
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"