aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--prebuilt/common/bin/backuptool.functions4
1 files changed, 2 insertions, 2 deletions
diff --git a/prebuilt/common/bin/backuptool.functions b/prebuilt/common/bin/backuptool.functions
index 9598f23c..d9b2fc09 100644
--- a/prebuilt/common/bin/backuptool.functions
+++ b/prebuilt/common/bin/backuptool.functions
@@ -8,7 +8,7 @@ export S=/system
export V=13.0
backup_file() {
- if [ -e "$1" ]; then
+ if [ -e "$1" -o -L "$1" ]; then
local F=`basename "$1"`
local D=`dirname "$1"`
# dont backup any apps that have odex files, they are useless
@@ -24,7 +24,7 @@ backup_file() {
restore_file() {
local FILE=`basename "$1"`
local DIR=`dirname "$1"`
- if [ -e "$C/$DIR/$FILE" ]; then
+ if [ -e "$C/$DIR/$FILE" -o -L "$C/$DIR/$FILE" ]; then
if [ ! -d "$DIR" ]; then
mkdir -p "$DIR";
fi