From e7cc354ee3f38baef212321ea6f63ee8635a6c7c Mon Sep 17 00:00:00 2001 From: ladios Date: Mon, 24 Jan 2011 13:47:14 +0800 Subject: [PATCH] backuptool: Add an option to ensure running. When updating via ROMManager, the presence of /tmp/.installscript will keep backuptool from running. For people who don't like this happen can `touch /system/etc/force_backuptool` to ensure the running of backuptool. Change-Id: I95b78ae569405b50d2cf95ddd05f0d554b32daad --- prebuilt/common/bin/backuptool.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/prebuilt/common/bin/backuptool.sh b/prebuilt/common/bin/backuptool.sh index d716ec36..cd3107bf 100755 --- a/prebuilt/common/bin/backuptool.sh +++ b/prebuilt/common/bin/backuptool.sh @@ -18,7 +18,7 @@ check_prereq() { } check_installscript() { - if [ -f "/tmp/.installscript" ]; + if [ -f "/tmp/.installscript" -a ! -f "$S/etc/force_backuptool" ]; then echo "/tmp/.installscript found. Skipping backuptool." PROCEED=0; @@ -70,6 +70,7 @@ lib/libspeech.so lib/libvoicesearch.so etc/hosts etc/custom_backup_list.txt +etc/force_backuptool EOF }