summaryrefslogtreecommitdiff
path: root/META-INF
diff options
context:
space:
mode:
Diffstat (limited to 'META-INF')
-rwxr-xr-xMETA-INF/com/google/android/update-binary4
1 files changed, 2 insertions, 2 deletions
diff --git a/META-INF/com/google/android/update-binary b/META-INF/com/google/android/update-binary
index 9d08706..0daa345 100755
--- a/META-INF/com/google/android/update-binary
+++ b/META-INF/com/google/android/update-binary
@@ -23,6 +23,7 @@ set_perm_recursive() {
}
file_getprop() { grep "^$2" "$1" | cut -d= -f2; }
getprop() { test -e /sbin/getprop && /sbin/getprop $1 || file_getprop /default.prop $1; }
+cleanup() { rm -rf /tmp/anykernel; }
abort() { ui_print "$*"; umount /system; umount /data; exit 1; }
show_progress 1.34 4;
@@ -91,11 +92,10 @@ if [ "$(file_getprop /tmp/anykernel/anykernel.sh do.modules)" == 1 ]; then
fi;
if [ "$(file_getprop /tmp/anykernel/anykernel.sh do.cleanup)" == 1 ]; then
- rm -rf /tmp/anykernel;
+ cleanup;
fi;
umount /system;
umount /data;
ui_print " ";
ui_print "Done!";
-