updater-script: TWRP fixes
- fix output and line spacing on TWRP - fix broken unpack/repack on TWRP due to binaries in /tmp not being allowed to execute unless /system was mounted (weird)
This commit is contained in:
1 parent
1f39fe6083
commit
7e80ad9fa2
2 files changed
+9
-9
No files matched your search
@@ -1,14 +1,14 @@
|
||||
show_progress(1.34, 4);
|
||||
ui_print("");
|
||||
ui_print(" ");
|
||||
assert(package_extract_dir("", "/tmp/anykernel"));
|
||||
ui_print(file_getprop("/tmp/anykernel/anykernel.sh", "kernel.string"));
|
||||
ui_print("");
|
||||
ui_print("AnyKernel Script by osm0sis @ xda-developers");
|
||||
ui_print("");
|
||||
ui_print(" ");
|
||||
ui_print("AnyKernel2 by osm0sis @ xda-developers");
|
||||
ui_print(" ");
|
||||
run_program("/sbin/busybox", "mount", "/system");
|
||||
ifelse(file_getprop("/tmp/anykernel/anykernel.sh", "do.devicecheck") == 1,
|
||||
(ui_print("Checking device...");
|
||||
ui_print("");
|
||||
ui_print(" ");
|
||||
assert(getprop("ro.product.device") == file_getprop("/tmp/anykernel/anykernel.sh", "device.name1") || getprop("ro.build.product") == file_getprop("/tmp/anykernel/anykernel.sh", "device.name1") ||
|
||||
getprop("ro.product.device") == file_getprop("/tmp/anykernel/anykernel.sh", "device.name2") || getprop("ro.build.product") == file_getprop("/tmp/anykernel/anykernel.sh", "device.name2") ||
|
||||
getprop("ro.product.device") == file_getprop("/tmp/anykernel/anykernel.sh", "device.name3") || getprop("ro.build.product") == file_getprop("/tmp/anykernel/anykernel.sh", "device.name3"));
|
||||
@@ -16,18 +16,18 @@ ifelse(file_getprop("/tmp/anykernel/anykernel.sh", "do.devicecheck") == 1,
|
||||
);
|
||||
ifelse(file_getprop("/tmp/anykernel/anykernel.sh", "do.initd") == 1,
|
||||
(ui_print("Creating init.d...");
|
||||
ui_print("");
|
||||
ui_print(" ");
|
||||
run_program("/sbin/sh", "-c", "mkdir /system/etc/init.d");
|
||||
set_perm_recursive(0, 0, 0755, 0755, "/system/etc/init.d");
|
||||
)
|
||||
);
|
||||
unmount("/system");
|
||||
ui_print("Installing kernel...");
|
||||
assert(run_program("/sbin/sh", "/tmp/anykernel/anykernel.sh"));
|
||||
ifelse(file_getprop("/tmp/anykernel/anykernel.sh", "do.cleanup") == 1,
|
||||
(delete_recursive("/tmp/anykernel");
|
||||
)
|
||||
);
|
||||
ui_print("");
|
||||
unmount("/system");
|
||||
ui_print(" ");
|
||||
ui_print("Done!");
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
AnyKernel 2.0 - CWM Zip Template for Kernel Releases with Ramdisk Modifications
|
||||
AnyKernel 2.0 - Flashable Zip Template for Kernel Releases with Ramdisk Modifications
|
||||
by osm0sis @ xda-developers
|
||||
|
||||
"AnyKernel is a template for an update.zip that can apply any kernel to any ROM, regardless of ramdisk." - Koush
|
||||
|
||||
Reference in new issue
Block a user