[HD2 Android Q&A, Help & Troubleshooting and Genera] -pixelfreak-:
re

i have 4 kernels in my rom. under magldr can i work with GBLeo. the other kernels have mistake with WIFI. i think the mistake is in the updater script. i clk work all kernels good.

################# MAGLDR marc

ui_print("@- KERNEL Installation");

if
file_getprop("/tmp/aroma-data/kernel.prop","selected.1") == "1" &&
file_getprop("/tmp/aroma-data/kernelver.prop","selected.1") == "1"
then
ui_print(" ");
ui_print("@- MAGLDR kernel marc1706 0.2.2...");

format("MTD", "boot");
mount("MTD", "boot", "/boot");

package_extract_dir("kernels/kernels_marc/boot", "/boot");

package_extract_dir("systems/system_marc","/system");

set_perm_recursive(0, 2000, 0755, 0750, "/system/etc/init.d");
set_perm(0, 0, 0755, "/system/etc/init.d");
set_perm(0, 0, 0777, "/system/etc/init.d/01_modules");

set_progress(0.96);
run_program("/system/bin/reboot");
else
ui_print("@- kein MAGLDR kernel marc1706 0.2.2 Installiert...");

endif;

################ MAGLDR GBL

if
file_getprop("/tmp/aroma-data/kernel.prop","selected.1") == "1" &&
file_getprop("/tmp/aroma-data/kernelver.prop","selected.1") == "2"
then
ui_print(" ");
ui_print("@- MAGLDR GBLeoKernel-1.3-TBD+WiFi...");

format("MTD", "boot");
mount("MTD", "boot", "/boot");

package_extract_dir("kernels/kernels_GBLeo/boot", "/boot");

delete("/system/lib/modules");
delete("/system/etc/init.d/01_modules");

package_extract_dir("systems/system_GBLeo","/system");

set_perm(0, 0, 0777, "/system/bin/compcache");
set_perm(0, 0, 0777, "/system/bin/zram_stats");
set_perm(0, 0, 0777, "/system/bin/handle_compcache");
set_perm(0, 0, 0777, "/system/bin/bash");
set_perm_recursive(0, 2000, 0755, 0750, "/system/etc/init.d");
set_perm(0, 0, 0755, "/system/etc/init.d");
set_perm(0, 0, 0777, "/system/etc/init.d/01_modules");

set_progress(0.96);
run_program("/system/bin/reboot");
else
ui_print("@- kein MAGLDR GBLeoKernel-1.3-TBD+WiFi Installiert...");
endif;

################ MAGLDR WARREN

if
file_getprop("/tmp/aroma-data/kernel.prop","selected.1") == "1" &&
file_getprop("/tmp/aroma-data/kernelver.prop","selected.1") == "3"
then
ui_print(" ");
ui_print("@- MAGLDR Kernel Warren...");

format("MTD", "boot");
mount("MTD", "boot", "/boot");

package_extract_dir("kernels/kernels_warren/boot", "/boot");

delete("/system/lib/modules");
delete("/system/etc/init.d/01_modules");

package_extract_dir("systems/system_warren", "/system");

set_perm_recursive(0, 2000, 0755, 0750, "/system/etc/init.d");
set_perm(0, 0, 0755, "/system/etc/init.d");
set_perm(0, 0, 0777, "/system/etc/init.d/01_modules");

set_progress(0.96);
run_program("/system/bin/reboot");
else
ui_print("@- kein MAGLDR Warren Kernel Installiert...");
endif;

################ MAGLDR FIKRET

if
file_getprop("/tmp/aroma-data/kernel.prop","selected.1") == "1" &&
file_getprop("/tmp/aroma-data/kernelver.prop","selected.1") == "4"
then
ui_print(" ");
ui_print("@- MAGLDR Kernel Fikret...");

format("MTD", "boot");
mount("MTD", "boot", "/boot");

package_extract_dir("kernels/kernels_fikret/boot", "/boot");

package_extract_dir("systems/system_fikret", "/system");

set_perm_recursive(0, 2000, 0755, 0750, "/system/etc/init.d");
set_perm(0, 0, 0755, "/system/etc/init.d");
set_perm(0, 0, 0777, "/system/etc/init.d/01_modules");

set_progress(0.96);
run_program("/system/bin/reboot");
else
ui_print("@- kein MAGLDR Fikret Kernel Installiert...");
endif;

############## CLK marc
if
file_getprop("/tmp/aroma-data/kernel.prop","selected.1") == "2" &&
file_getprop("/tmp/aroma-data/kernelver.prop","selected.1") == "1"
then
ui_print(" ");
ui_print("@- CLK kernel marc1706 0.2.2...");
format("MTD", "boot");
assert(package_extract_file("kernels/kernels_marc/boot.img", "/tmp/boot.img"),

write_raw_image("/tmp/boot.img", "boot"),

delete("/tmp/boot.img"));

package_extract_dir("clk/clk_marc", "/system");

set_perm_recursive(0, 2000, 0755, 0750, "/system/etc/init.d");
set_perm(0, 0, 0755, "/system/etc/init.d");
set_perm(0, 0, 0777, "/system/etc/init.d/01_modules");
set_perm_recursive(0, 0, 0755, 0750, "/system/etc/ppp");

set_progress(0.96);
run_program("/system/bin/reboot");
else

ui_print("@- kein CLK kernel marc1706 0.2.2... Installiert");
endif;

############## CLK GBL

if
file_getprop("/tmp/aroma-data/kernel.prop","selected.1") == "2" &&
file_getprop("/tmp/aroma-data/kernelver.prop","selected.1") == "2"
then
ui_print(" ");
ui_print("@- CLK GBLeoKernel-1.3-TBD+WiFi...");
format("MTD", "boot");
assert(package_extract_file("kernels/kernels_GBLeo/boot.img", "/tmp/boot.img"),

write_raw_image("/tmp/boot.img", "boot"),

delete("/tmp/boot.img"));

delete("/system/lib/modules");
delete("/system/etc/init.d/01_modules");

package_extract_dir("clk/clk_GBLeo", "/system");
package_extract_dir("systems/system_GBLeo","/system");

set_perm(0, 0, 0777, "/system/bin/compcache");
set_perm(0, 0, 0777, "/system/bin/zram_stats");
set_perm(0, 0, 0777, "/system/bin/handle_compcache");
set_perm(0, 0, 0777, "/system/bin/bash");
set_perm_recursive(0, 0, 0755, 0644, "/system/lib/modules");
set_perm_recursive(0, 2000, 0755, 0750, "/system/etc/init.d");
set_perm(0, 0, 0755, "/system/etc/init.d");
set_perm_recursive(0, 0, 0755, 0750, "/system/etc/ppp");

set_progress(0.96);
run_program("/system/bin/reboot");
else

ui_print("@- kein CLK GBLeoKernel-1.3-TBD+WiFi... installiert...");
endif;

############## CLK WARREN

if
file_getprop("/tmp/aroma-data/kernel.prop","selected.1") == "2" &&
file_getprop("/tmp/aroma-data/kernelver.prop","selected.1") == "3"
then
ui_print(" ");
ui_print("@- CLK Kernel Warren...");
format("MTD", "boot");
assert(package_extract_file("kernels/kernels_warren/boot.img", "/tmp/boot.img"),
write_raw_image("/tmp/boot.img", "boot"),
delete("/tmp/boot.img"));

delete("/system/lib/modules");
delete("/system/etc/init.d/01_modules");

package_extract_dir("clk/clk_warren", "/system");
package_extract_dir("systems/system_warren","/system");

set_perm_recursive(0, 0, 0755, 0644, "/system/lib/modules");
set_perm_recursive(0, 2000, 0755, 0750, "/system/etc/init.d");
set_perm(0, 0, 0755, "/system/etc/init.d");
set_perm_recursive(0, 0, 0755, 0750, "/system/etc/ppp");

set_progress(0.96);
run_program("/system/bin/reboot");
else
ui_print("@- kein CLK Warren Kernel Installiert...");
endif;

############## CLK FIKRET

if
file_getprop("/tmp/aroma-data/kernel.prop","selected.1") == "2" &&
file_getprop("/tmp/aroma-data/kernelver.prop","selected.1") == "4"
then
ui_print(" ");
ui_print("@- CLK Kernel Fikret...");
format("MTD", "boot");
assert(package_extract_file("kernels/kernels_fikret/boot.img", "/tmp/boot.img"),
write_raw_image("/tmp/boot.img", "boot"),
delete("/tmp/boot.img"));

delete("/system/lib/modules");
delete("/system/etc/init.d/01_modules");

package_extract_dir("clk/clk_fikret", "/system");
package_extract_dir("systems/system_fikret","/system");

set_perm_recursive(0, 0, 0755, 0644, "/system/lib/modules");
set_perm_recursive(0, 2000, 0755, 0750, "/system/etc/init.d");
set_perm(0, 0, 0755, "/system/etc/init.d");
set_perm_recursive(0, 0, 0755, 0750, "/system/etc/ppp");

set_progress(0.96);
run_program("/system/bin/reboot");
else
ui_print("@- kein CLK Fikret Kernel Installiert...");
endif;

unmount("/boot");
unmount("/system");
unmount("/data");
unmount("/sd-ext");
ui_print(" ");
ui_print(" ");
ui_print("@FERTIG...");
set_progress(1.0);

here is my meta.inf