fix more bugssss
This commit is contained in:
1 parent
84231181e8
commit
8fef580ac7
3 files changed
+8
-9
No files matched your search
@@ -8,11 +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.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("/tmp/mkflashnewboot.sh");
|
||||
run_program("/tmp/mkbootimg.sh");
|
||||
write_raw_image("/tmp/newboot.img", "boot");
|
||||
ui_print("Done!");
|
||||
@@ -0,0 +1,6 @@
|
||||
#!/sbin/sh
|
||||
echo \#!/sbin/sh > /tmp/createnewboot.sh
|
||||
echo /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 >> /tmp/createnewboot.sh
|
||||
chmod 777 /tmp/createnewboot.sh
|
||||
/tmp/createnewboot.sh
|
||||
return $?
|
||||
@@ -1,7 +0,0 @@
|
||||
#!/sbin/sh
|
||||
echo \#!/sbin/sh > /tmp/flashnewboot.sh
|
||||
echo /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 >> /tmp/flashnewboot.sh
|
||||
echo sync >> /tmp/flashnewboot.sh
|
||||
chmod 777 /tmp/flashnewboot.sh
|
||||
/tmp/flashnewboot.sh
|
||||
return $?
|
||||
Reference in new issue
Block a user