diff options
author | ladios <ladios.jonquil@gmail.com> | 2011-01-24 13:47:14 +0800 |
---|---|---|
committer | ladios <ladios.jonquil@gmail.com> | 2011-01-24 14:15:07 +0800 |
commit | e7cc354ee3f38baef212321ea6f63ee8635a6c7c (patch) | |
tree | 3345f60c5a7c054c7905678a9d8adad413bce5a2 /prebuilt | |
parent | fa569326d5f483b00c6fa15fcd2537181c120c86 (diff) | |
download | vendor_replicant-e7cc354ee3f38baef212321ea6f63ee8635a6c7c.zip vendor_replicant-e7cc354ee3f38baef212321ea6f63ee8635a6c7c.tar.gz vendor_replicant-e7cc354ee3f38baef212321ea6f63ee8635a6c7c.tar.bz2 |
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
Diffstat (limited to 'prebuilt')
-rwxr-xr-x | prebuilt/common/bin/backuptool.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/prebuilt/common/bin/backuptool.sh b/prebuilt/common/bin/backuptool.sh index d716ec3..cd3107b 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 } |