Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ifelse(
- is_mounted("/sd-ext") == "/sd-ext",(
- ui_print("sd-ext partition found!");
- ui_print("Extracting tools...");
- package_extract_dir("restore", "/system/bin");
- ui_print("Preparing...");
- set_perm(0, 0, 0777, "/system/bin/gnutar");
- set_perm(0, 0, 0777, "/system/bin/makerestore.sh");
- set_perm(0, 0, 0777, "/system/bin/checkfile.sh");
- run_program("/system/bin/checkfile.sh");
- ifelse(file_getprop("/tmp/check.prop","ro.backup.exist") == "yes",(
- ui_print("Backup found!");
- ui_print("Restoring...");
- run_program("/system/bin/makerestore.sh");
- ),(
- ui_print("Backup not found!");
- ));
- ui_print("Cleaning...");
- delete("/system/bin/gnutar");
- delete("/system/bin/makerestore.sh");
- delete("/system/bin/checkfile.sh");
- ui_print("Done!");
- ui_print("Restore log here: /sdcard/sd-ext_restore.log");
- ),(ui_print("Unable to mount sd-ext partition!");)
- );
Advertisement
Add Comment
Please, Sign In to add comment