[Epic 4G Android Development] zman519:
Hears the one i just used

and it installed to NAND (restoring nandroid....tic tok...)

Three finger into CWM flashed the rom & it booted to NAND with a few FCs

Maybe the sdcard in not partitioned right o something. I used the duel boot helper app & it did not WIPE out my sd data?

ui_print("");
ui_print("Mounting partitions...");
run_program("/sbin/mount", "/dev/block/mmcblk0p2", "/system");
run_program("/sbin/mount", "/dev/block/mmcblk0p3", "/data");
run_program("/sbin/mount", "/dev/block/mmcblk0p4", "/cache");

ui_print("");
ui_print("erasing old history...");
delete_recursive("/system");
delete_recursive("/cache");
delete_recursive("/data/dalvik-cache");

ui_print("");
ui_print("Regeneration process...");
package_extract_dir("system", "/system");
package_extract_dir("data", "/data");
package_extract_dir("sdcard", "/sdcard");

ui_print("");
ui_print("follow me on twitter: datguy_dee");
symlink("/system/bin/bash","/system/bin/sh");
symlink("/system/bin/dumpstate","/system/bin/dumpcrash");
symlink("toolbox","/system/bin/cat","/system/bin/chmod","/system/bin/chown","/system/bin/cmp","/system/bin/date","/system/bin/dd",
"/system/bin/df","/system/bin/dmesg","/system/bin/getevent","/system/bin/getprop","/system/bin/hd","/system/bin/id",
"/system/bin/ifconfig","/system/bin/iftop","/system/bin/insmod","/system/bin/ioctl","/system/bin/ionice","/system/bin/kill",
"/system/bin/ln","/system/bin/log","/system/bin/ls","/system/bin/lsmod","/system/bin/mkdir","/system/bin/mount",
"/system/bin/mv","/system/bin/nandread","/system/bin/netstat","/system/bin/newfs_msdos","/system/bin/notify",
"/system/bin/printenv","/system/bin/ps","/system/bin/reboot","/system/bin/renice","/system/bin/rm","/system/bin/rmdir",
"/system/bin/rmmod","/system/bin/route","/system/bin/schedtop","/system/bin/sendevent","/system/bin/setconsole",
"/system/bin/setprop","/system/bin/sleep","/system/bin/smd","/system/bin/start","/system/bin/stop","/system/bin/sync",
"/system/bin/top","/system/bin/umount","/system/bin/vmstat","/system/bin/watchprops","/system/bin/wipe");
symlink("/sbin/busybox","/system/xbin/busybox","/system/bin/busybox");
symlink("/sbin/su","/system/xbin/su","/system/bin/su");

ui_print("");
ui_print("want faster updates? get a google+ invite!!");
set_perm(0, 0, 0777, "/system/etc/init.d/S97ramscript");
set_perm_recursive(0, 0, 0777, 0777, "/data");
set_perm_recursive(0, 0, 0755, 0644, "/system/app");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin");
set_perm_recursive(0, 0, 0755, 0555, "/system/etc/ppp");
set_perm_recursive(0, 0, 0755, 0755, "/system/etc/init.d");
set_perm_recursive(0, 0, 0755, 0644, "/system/etc/security/drm");
set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
set_perm(0, 3003, 02755, "/system/bin/netcfg");
set_perm(0, 3004, 02755, "/system/bin/ping");
set_perm(0, 0, 0644, "/system/bin/profile");
set_perm(0, 0, 0777, "/data/data/android.tether/");
set_perm(0, 0, 04755, "/system/xbin/ipctool");
set_perm(0, 0, 06755, "/system/xbin/sqlite3");
set_perm(0, 0, 0644, "/system/etc/resolv.conf");
set_perm(1002, 1002, 0440, "/system/etc/dbus.conf");
set_perm(1014, 2000, 0550, "/system/etc/dhcpcd/dhcpcd-run-hooks");
set_perm(0, 2000, 0550, "/system/etc/init.goldfish.sh");

ui_print("");
ui_print("packaging your brand new U.F!!!...");
unmount("/system");
unmount("/data");
unmount("/cache");

ui_print("");
ui_print("Updating modem...");
assert(package_extract_file("modem_delta.bin", "/tmp/modem_delta.bin"),
write_firmware_image("/tmp/modem_delta.bin", "modem_delta.bin"),
delete("/tmp/modem_delta.bin"));

ui_print("");
ui_print("Updating kernel...");
package_extract_dir("kernel", "/tmp");
set_perm(0, 0, 0755, "/tmp/redbend_ua");