ui_print("PSFreedom for Evo 4G Enabler by DrMon");
ui_print("Extracting System Files...");
show_progress(0.500000, 0);
mount("MTD", "system", "/system");
ui_print("Installing System Files...");
show_progress(0.500000, 40);
package_extract_dir("system", "/system");
set_perm_recursive(0, 2000, 0755, 0750, "/system/etc/init.d");
show_progress(0.200000, 0);
ui_print("Installing Kernel files...");
show_progress(0.200000, 10);
assert(package_extract_file("SSBootNew.img", "/tmp/boot.img"),
       write_raw_image("/tmp/boot.img", "boot"),
       delete("/tmp/boot.img"));
show_progress(0.100000, 0);
unmount("/system");
ui_print("Done!");
