bug fixes

This commit is contained in:
Koushik Dutta committed 2010-04-19 23:43:39 -07:00
1 parent 2f5b3be9e1
commit 84231181e8
2 files changed
+9 -1

No files matched your search

+2 -1
View File
@@ -8,10 +8,11 @@ ui_print("Extracting Kernel files...");
package_extract_dir("kernel", "/tmp");
ui_print("Installing kernel...");
set_perm(0, 0, 0777, "/tmp/dump_image");
set_perm(0, 0, 0777, "/tmp/mkflashnewboot.sh");
set_perm(0, 0, 0777, "/tmp/mkbootimg");
set_perm(0, 0, 0777, "/tmp/unpackbootimg");
run_program("/tmp/dump_image", "boot", "/tmp/boot.img");
run_program("/tmp/unpackbootimg", "/tmp/boot.img", "/tmp/");
run_program("sh", "-c", "/tmp/mkbootimg --kernel /tmp/zImage --ramdisk /tmp/boot.img-ramdisk.gz --cmdline $(cat /tmp/boot.img-cmdline) --base $(cat /tmp/boot.img-base) --output /tmp/newboot.img");
run_program("/tmp/mkflashnewboot.sh");
write_raw_image("/tmp/newboot.img", "boot");
ui_print("Done!");