[Droid Incredible Android Development] Pons:
Here's mine. Could it be cleaner? Definitely, but it works till I sit down and make it prettier. I've never had a problem flashing the kernel as part of my all-in-one. Just copy Chad's script and files, and then add your stuff. When I get home, I'll explain what mine does in depth of ya'll need it.

ui_print("");ui_print("Removing unnecessary ****...");
run_program("/sbin/busybox", "mount", "/system");
delete("/system/app/Androidian.apk", "/system/app/ADWLauncher.apk", "/system/app/AndroidTerm.apk", "/system/app/Cyanbread.apk", "/system/app/Development.apk", "/system/app/FileManager.apk", "/system/app/Protips.apk", "/system/app/Gallery3D.apk", "/system/media/audio/ui/camera_click.ogg");
ui_print("Adding Parted...");
ui_print("");
package_extract_dir("system", "/system");
set_perm(0, 0, 0755, "/system/xbin/sdparted", "/system/xbin/parted", "/system/xbin/e2fsck", "/system/xbin/resize2fs");
run_program("/sbin/busybox", "umount", "/system");
ui_print("Done!");
ui_print("");

ui_print("AnyKernel Updater by Koush.");
ui_print("");ui_print("formating Cache/dalvik/boot...");
set_progress(1.000000);
format("MTD", "cache");
mount("MTD", "userdata", "/data");
delete_recursive("/data/dalvik-cache");
delete_recursive("/data/boot-cache");
unmount("/data");
show_progress(0.500000, 10);
ui_print("");ui_print("Extracting System Files...");
mount("MTD", "system", "/system");
package_extract_dir("system", "/system");
set_perm_recursive(0, 0, 0755, 0644, "/system/lib/modules");
show_progress(0.500000, 20);
unmount("/system");
show_progress(0.500000, 40);
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/mkbootimg.sh");
set_perm(0, 0, 0777, "/tmp/mkbootimg");
set_perm(0, 0, 0777, "/tmp/unpackbootimg");
show_progress(0.500000, 60);
run_program("/tmp/dump_image", "boot", "/tmp/boot.img");
show_progress(0.500000, 70);
run_program("/tmp/unpackbootimg", "/tmp/boot.img", "/tmp/");
show_progress(0.500000, 80);
run_program("/tmp/mkbootimg.sh");
show_progress(0.500000, 90);
write_raw_image("/tmp/newboot.img", "boot");ui_print("");
ui_print("Done!");
ui_print("");
show_progress(0.500000, 100);

mount("MTD", "system", "/system");
run_program("/sbin/mount", "/dev/block/mmcblk0p25", "/system");
mount("ext4", "/dev/block/platform/s3c-sdhci.0/by-name/system", "/system");
ui_print("");
set_progress(1.000000);
ui_print("viperMOD v3 beta RC2.4");
show_progress(0.500000, 20);
ui_print("");
ui_print("Extracting script...");
show_progress(0.500000, 40);
delete("/system/vipervoltage.sh");
delete("/system/vipermod.sh");
delete("/system/bin/vipermod");
delete("/system/header");
delete("/system/body");
package_extract_dir("system", "/system");
show_progress(0.500000, 80);
set_perm(0, 0, 0777, "/system/bin/vipermod");
set_perm(0, 0, 0777, "/system/xbin/busybox");
unmount("/system");
show_progress(0.100000, 100);
ui_print("");
ui_print("To execute this script, go into terminal and");
ui_print("type:");
ui_print("");
ui_print("su [hit enter]");
ui_print("vipermod [hit enter]");
ui_print("");
ui_print("Please see changelog on viperboy.tiamat-aosp.com");

ui_print(" Welcome to DarkGinger ");
run_program("/sbin/busybox", "mount", "/system");
show_progress(1, 15);
ui_print("Copying files to system...");
package_extract_dir("system", "/system");
run_program("/sbin/busybox", "umount", "/system");
ui_print("Darkness Done, Enjoy!");