diff options
author | Pacien TRAN-GIRARD | 2015-08-14 23:10:37 +0200 |
---|---|---|
committer | Pacien TRAN-GIRARD | 2015-08-14 23:10:37 +0200 |
commit | a12f6568bd358287bfff81ab0436142ae0da2067 (patch) | |
tree | 18d7b69a7d78b445bf7bbe234a337e18a15adf24 | |
parent | 82efe23d9791b571a70bc2bb90d120cb510fc45c (diff) | |
download | vi7-root-a12f6568bd358287bfff81ab0436142ae0da2067.tar.gz |
Preserve previous install-recovery.sh script evaluation
-rw-r--r-- | root-vi7.sh | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/root-vi7.sh b/root-vi7.sh index 8bb5e61..abe18c4 100644 --- a/root-vi7.sh +++ b/root-vi7.sh | |||
@@ -26,17 +26,12 @@ cp_chmod_chcon() { | |||
26 | chcon $4 $2 | 26 | chcon $4 $2 |
27 | } | 27 | } |
28 | 28 | ||
29 | bckp() { | ||
30 | cp -p $1 $1.bckp | ||
31 | } | ||
32 | |||
33 | mkdir -p /system/app/SuperSU | 29 | mkdir -p /system/app/SuperSU |
34 | cp_chmod_chcon $SU_DIR/common/Superuser.apk /system/app/SuperSU/SuperSU.apk 0644 u:object_r:system_file:s0 | 30 | cp_chmod_chcon $SU_DIR/common/Superuser.apk /system/app/SuperSU/SuperSU.apk 0644 u:object_r:system_file:s0 |
35 | 31 | ||
36 | cp_chmod_chcon $SU_DIR/common/install-recovery.sh /system/etc/install-recovery.sh 0755 u:object_r:toolbox_exec:s0 | 32 | cp_chmod_chcon $SU_DIR/common/install-recovery.sh /system/etc/install-recovery.sh 0755 u:object_r:toolbox_exec:s0 |
37 | 33 | ||
38 | bckp /system/bin/install-recovery.sh | 34 | mv /system/bin/install-recovery.sh /system/bin/install-recovery-2.sh |
39 | rm /system/bin/install-recovery.sh | ||
40 | ln -s /system/etc/install-recovery.sh /system/bin/install-recovery.sh | 35 | ln -s /system/etc/install-recovery.sh /system/bin/install-recovery.sh |
41 | 36 | ||
42 | mkdir -p /system/bin/.ext | 37 | mkdir -p /system/bin/.ext |