From 9f1dab044326c15f9f95e6fc3551ddf890553eac Mon Sep 17 00:00:00 2001 From: Kali- Date: Sat, 14 Aug 2010 23:46:34 +0200 Subject: [PATCH] add customizable backup files list --- prebuilt/common/bin/backuptool.sh | 30 ++++++++++++++++++++++++------ 1 file changed, 24 insertions(+), 6 deletions(-) diff --git a/prebuilt/common/bin/backuptool.sh b/prebuilt/common/bin/backuptool.sh index f2513019..1340b415 100755 --- a/prebuilt/common/bin/backuptool.sh +++ b/prebuilt/common/bin/backuptool.sh @@ -71,9 +71,23 @@ lib/libinterstitial.so lib/libspeech.so lib/libzxing.so etc/hosts +etc/custom_backup_list.txt EOF } +get_custom_files() { + local L + if [ -f "$C/custom_backup_list.txt" ]; + then + [ ! -f $C/fixed_custom_backup_list.txt ] && tr -d '\r' < $C/custom_backup_list.txt \ + > $C/fixed_custom_backup_list.txt + L=`cat $C/fixed_custom_backup_list.txt` + cat <