[HD2 Android NAND Development] carl1961:
Ran out of room to post

updater.script

ui_print("");
ui_print("");
ui_print("");
ui_print("");
ui_print("");
ui_print("");
ui_print("");
ui_print("");
ui_print("");
ui_print("");
ui_print("");
ui_print("");
ui_print("");
ui_print("");
ui_print("");
ui_print("");
ui_print("");
ui_print("");
ui_print("");
ui_print("");
ui_print("");
ui_print("");
ui_print("");
ui_print("");
ui_print("");
ui_print("");
ui_print("");
ui_print("");
ui_print("");
ui_print("");
ui_print("");
ui_print("");
ui_print("");
ui_print("");
ui_print("");
ui_print("");
ui_print("");
ui_print("");
ui_print(" _ _ ____ _ _ ");
ui_print(" | | | |_ __| _ \ _ __ ___ (_) __| |");
ui_print(" | | | | '__| | | | '__/ _ \| |/ _` |");
ui_print(" | |_| | | | |_| | | | (_) | | (_| |");
ui_print(" \___/|_| |____/|_| \___/|_|\__,_|");
ui_print("");
ui_print(" ");
ui_print(" ");
ui_print("_______________________________________________");
ui_print(" INSTALLING SYSTEM ");
ui_print(" ");
ui_print(" FLASHING TIME 7 MINUTES ");
ui_print(" ");
ui_print(" COMPLETE ROM INSTALL TIME 15 - 20 MINUTES ");
ui_print("_______________________________________________");
ui_print("");
ui_print("");

ui_print(" Formating /system");
unmount("/system");
format("MTD", "system");
ui_print(" Mounting /system");
mount("MTD", "system", "/system");
ui_print(" ");

ui_print(" Installing Data Partition");
package_extract_dir("data", "/data");

ui_print(" Installing System Partition");

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

##############################[ CUSTOMIZE ]##############################

#
# BOOTANIMATIONS
if
file_getprop("/tmp/aroma-data/mods.prop","selected.2") == "1"
then
ui_print("@Installing HTC BEATS Boot Animation");
package_extract_dir("customize/app/bootscreen_beats", "/");
endif;

if
file_getprop("/tmp/aroma-data/mods.prop","selected.2") == "2"
then
ui_print("@Installing Generic Boot and Down Animation");
package_extract_dir("customize/app/bootscreen_generic", "/");
endif;

if
file_getprop("/tmp/aroma-data/mods.prop","selected.3") == "2"
then
ui_print("@Installing Old HTC Camera");
package_extract_dir("customize/app/camera30", "/");
endif;

ui_print("@Installing Packages");
run_program("/sbin/mkdir","/data/app");

##---- Customize Packages
# app_adobe_flashplayer
if
file_getprop("/tmp/aroma-data/customize.prop","item.1.1") == "1"
then
ui_print("@ Installing Package: app_adobe_flashplayer");
package_extract_dir("customize/app/app_adobe_flashplayer", "/");
endif;

# app_adobe_reader
if
file_getprop("/tmp/aroma-data/customize.prop","item.1.2") == "1"
then
ui_print("@ Installing Package: app_adobe_reader");
package_extract_dir("customize/app/app_adobe_reader", "/");
endif;

# app_gmail
if
file_getprop("/tmp/aroma-data/customize.prop","item.1.4") == "1"
then
ui_print("@ Installing Package: app_gmail");
package_extract_dir("customize/app/app_gmail", "/");
endif;

# app_gmaps
if
file_getprop("/tmp/aroma-data/customize.prop","item.1.5") == "1"
then
ui_print("@ Installing Package: app_gmaps");
package_extract_dir("customize/app/app_gmaps", "/");
endif;

# app_gtalk
if
file_getprop("/tmp/aroma-data/customize.prop","item.1.6") == "1"
then
ui_print("@ Installing Package: app_gtalk");
package_extract_dir("customize/app/app_gtalk", "/");
endif;

# app_media_gallery3d
if
file_getprop("/tmp/aroma-data/customize.prop","item.1.7") == "1"
then
ui_print("@ Installing Package: app_media_gallery3d");
package_extract_dir("customize/app/app_media_gallery3d", "/");
endif;

# app_picasapyramid
if
file_getprop("/tmp/aroma-data/customize.prop","item.1.8") == "1"
then
ui_print("@ Installing Package: app_picasapyramid");
package_extract_dir("customize/app/app_picasapyramid", "/");
endif;

# app_plurk
if
file_getprop("/tmp/aroma-data/customize.prop","item.1.9") == "1"
then
ui_print("@ Installing Package: app_plurk");
package_extract_dir("customize/app/app_plurk", "/");
endif;

# app_polaris
if
file_getprop("/tmp/aroma-data/customize.prop","item.1.10") == "1"
then
ui_print("@ Installing Package: app_polaris");
package_extract_dir("customize/app/app_polaris", "/");
endif;

# app_voicedialer
if
file_getprop("/tmp/aroma-data/customize.prop","item.1.11") == "1"
then
ui_print("@ Installing Package: app_voicedialer");
package_extract_dir("customize/app/app_voicedialer", "/");
endif;

# app_quicklookup
if
file_getprop("/tmp/aroma-data/customize.prop","item.1.12") == "1"
then
ui_print("@ Installing Package: app_quicklookup");
package_extract_dir("customize/app/app_quicklookup", "/");
endif;

# app_appsharing
if
file_getprop("/tmp/aroma-data/customize.prop","item.1.13") == "1"
then
ui_print("@ Installing Package: app_appsharing");
package_extract_dir("customize/app/app_appsharing", "/");
endif;

# app_flickr
if
file_getprop("/tmp/aroma-data/customize.prop","item.1.14") == "1"
then
ui_print("@ Installing Package: app_flickr");
package_extract_dir("customize/app/app_flickr", "/");
endif;

# app_adfree
if
file_getprop("/tmp/aroma-data/customize.prop","item.1.15") == "1"
then
ui_print("@ Installing Package: app_adfree");
package_extract_dir("customize/app/app_adfree", "/");
endif;

# app_voicesearch
if
file_getprop("/tmp/aroma-data/customize.prop","item.1.17") == "1"
then
ui_print("@ Installing Package: app_voicesearch");
package_extract_dir("customize/app/app_voicesearch", "/");
endif;

# app_youtube
if
file_getprop("/tmp/aroma-data/customize.prop","item.1.18") == "1"
then
ui_print("@ Installing Package: app_youtube");
package_extract_dir("customize/app/app_youtube", "/");
endif;

# app_social_facebook
if
file_getprop("/tmp/aroma-data/customize.prop","item.2.1") == "1"
then
ui_print("@ Installing Package: app_social_facebook");
package_extract_dir("customize/app/app_social_facebook", "/");
endif;

# app_twitter
if
file_getprop("/tmp/aroma-data/customize.prop","item.2.2") == "1"
then
ui_print("@ Installing Package: app_twitter");
package_extract_dir("customize/app/app_twitter", "/");
endif;

# app_filemanager_estrongs
if
file_getprop("/tmp/aroma-data/customize.prop","item.3.1") == "1"
then
ui_print("@ Installing Package: app_filemanager_estrongs");
package_extract_dir("customize/app/app_filemanager_estrongs", "/");
endif;

# app_htc_filemanager
if
file_getprop("/tmp/aroma-data/customize.prop","item.1.16") == "1"
then
ui_print("@ Installing Package: app_filemanager_estrongs");
package_extract_dir("customize/app/app_htc_filemanager", "/");
endif;

# app_tools_backupeverything
if
file_getprop("/tmp/aroma-data/customize.prop","item.3.2") == "1"
then
ui_print("@ Installing Package: app_tools_backupeverything");
package_extract_dir("customize/app/app_tools_backupeverything", "/");
endif;

# app_tools_daemoncontroller
if
file_getprop("/tmp/aroma-data/customize.prop","item.3.3") == "1"
then
ui_print("@ Installing Package: app_tools_daemoncontroller");
package_extract_dir("customize/app/app_tools_daemoncontroller", "/");
endif;

# app_tools_fasterfix
if
file_getprop("/tmp/aroma-data/customize.prop","item.3.4") == "1"
then
ui_print("@ Installing Package: app_tools_fasterfix");
package_extract_dir("customize/app/app_tools_fasterfix", "/");
endif;

# app_tools_marketenabler
if
file_getprop("/tmp/aroma-data/customize.prop","item.3.5") == "1"
then
ui_print("@ Installing Package: app_tools_marketenabler");
package_extract_dir("customize/app/app_tools_marketenabler", "/");
endif;

# app_stk
if
file_getprop("/tmp/aroma-data/customize.prop","item.3.7") == "1"
then
ui_print("@ Installing Package: app_stk");
package_extract_dir("customize/app/app_stk", "/");
endif;

# app_dspmanager
if
file_getprop("/tmp/aroma-data/customize.prop","item.3.8") == "1"
then
ui_print("@ Installing Package: app_dspmanager");
package_extract_dir("customize/app/app_dspmanager", "/");
endif;

# app_rilinfo
if
file_getprop("/tmp/aroma-data/customize.prop","item.3.9") == "1"
then
ui_print("@ Installing Package: app_rilinfo");
package_extract_dir("customize/app/app_rilinfo", "/");
endif;

# htc_friendstream
if
file_getprop("/tmp/aroma-data/customize.prop","item.4.1") == "1"
then
ui_print("@ Installing Package: htc_friendstream");
package_extract_dir("customize/app/htc_friendstream", "/");
endif;

# htc_greader
if
file_getprop("/tmp/aroma-data/customize.prop","item.4.2") == "1"
then
ui_print("@ Installing Package: htc_greader");
package_extract_dir("customize/app/htc_greader", "/");
endif;

# htc_laputa
if
file_getprop("/tmp/aroma-data/customize.prop","item.4.3") == "1"
then
ui_print("@ Installing Package: htc_laputa");
package_extract_dir("customize/app/htc_laputa", "/");
endif;

# htc_mail
if
file_getprop("/tmp/aroma-data/customize.prop","item.4.4") == "1"
then
ui_print("@ Installing Package: htc_mail");
package_extract_dir("customize/app/htc_mail", "/");
endif;

# htc_notes
if
file_getprop("/tmp/aroma-data/customize.prop","item.4.5") == "1"
then
ui_print("@ Installing Package: htc_notes");
package_extract_dir("customize/app/htc_notes", "/");
endif;

# htc_recommends
if
file_getprop("/tmp/aroma-data/customize.prop","item.4.6") == "1"
then
ui_print("@ Installing Package: htc_recommends");
package_extract_dir("customize/app/htc_recommends", "/");
endif;

# htc_sketcher
if
file_getprop("/tmp/aroma-data/customize.prop","item.4.7") == "1"
then
ui_print("@ Installing Package: htc_sketcher");
package_extract_dir("customize/app/htc_sketcher", "/");
endif;

# htc_stock
if
file_getprop("/tmp/aroma-data/customize.prop","item.4.8") == "1"
then
ui_print("@ Installing Package: htc_stock");
package_extract_dir("customize/app/htc_stock", "/");
endif;

# htc_task
if
file_getprop("/tmp/aroma-data/customize.prop","item.4.9") == "1"
then
ui_print("@ Installing Package: htc_task");
package_extract_dir("customize/app/htc_task", "/");
endif;

# htc_watch
if
file_getprop("/tmp/aroma-data/customize.prop","item.4.10") == "1"
then
ui_print("@ Installing Package: htc_watch");
package_extract_dir("customize/app/htc_watch", "/");
endif;

# app_market
if
file_getprop("/tmp/aroma-data/customize.prop","item.4.11") == "1"
then
ui_print("@ Installing Package: app_market");
package_extract_dir("customize/app/app_market", "/");
endif;

# app_marketupdater
if
file_getprop("/tmp/aroma-data/customize.prop","item.4.12") == "1"
then
ui_print("@ Installing Package: app_marketupdater");
package_extract_dir("customize/app/app_marketupdater", "/");
endif;

# htc_widget_bookmark
if
file_getprop("/tmp/aroma-data/customize.prop","item.5.1") == "1"
then
ui_print("@ Installing Package: htc_widget_bookmark");
package_extract_dir("customize/app/htc_widget_bookmark", "/");
endif;

# htc_widget_calculator
if
file_getprop("/tmp/aroma-data/customize.prop","item.5.2") == "1"
then
ui_print("@ Installing Package: htc_widget_calculator");
package_extract_dir("customize/app/htc_widget_calculator", "/");
endif;

# htc_widget_calendar
if
file_getprop("/tmp/aroma-data/customize.prop","item.5.3") == "1"
then
ui_print("@ Installing Package: htc_widget_calendar");
package_extract_dir("customize/app/htc_widget_calendar", "/");
endif;

# htc_widget_contact
if
file_getprop("/tmp/aroma-data/customize.prop","item.5.4") == "1"
then
ui_print("@ Installing Package: htc_widget_contact");
package_extract_dir("customize/app/htc_widget_contact", "/");
endif;

# htc_widget_fm
if
file_getprop("/tmp/aroma-data/customize.prop","item.5.5") == "1"
then
ui_print("@ Installing Package: htc_widget_fm");
package_extract_dir("customize/app/htc_widget_fm", "/");
endif;

# htc_widget_music
if
file_getprop("/tmp/aroma-data/customize.prop","item.5.6") == "1"
then
ui_print("@ Installing Package: htc_widget_music");
package_extract_dir("customize/app/htc_widget_music", "/");
endif;

# htc_widget_quicklaunch
if
file_getprop("/tmp/aroma-data/customize.prop","item.5.7") == "1"
then
ui_print("@ Installing Package: htc_widget_quicklaunch");
package_extract_dir("customize/app/htc_widget_quicklaunch", "/");
endif;

# htc_widget_trends
if
file_getprop("/tmp/aroma-data/customize.prop","item.5.8") == "1"
then
ui_print("@ Installing Package: htc_widget_trends");
package_extract_dir("customize/app/htc_widget_trends", "/");
endif;

# htc_widget_geniewidget
if
file_getprop("/tmp/aroma-data/customize.prop","item.5.9") == "1"
then
ui_print("@ Installing Package: htc_widget_geniewidget");
package_extract_dir("customize/app/htc_widget_geniewidget", "/");
endif;

# livewall_magicsmoke
if
file_getprop("/tmp/aroma-data/customize.prop","item.6.1") == "1"
then
ui_print("@ Installing Package: livewall_magicsmoke");
package_extract_dir("customize/app/livewall_magicsmoke", "/");
endif;

# livewall_mode10
if
file_getprop("/tmp/aroma-data/customize.prop","item.6.2") == "1"
then
ui_print("@ Installing Package: livewall_mode10");
package_extract_dir("customize/app/livewall_mode10", "/");
endif;

# livewall_streak
if
file_getprop("/tmp/aroma-data/customize.prop","item.6.3") == "1"
then
ui_print("@ Installing Package: livewall_streak");
package_extract_dir("customize/app/livewall_streak", "/");
endif;

# livewall_visual
if
file_getprop("/tmp/aroma-data/customize.prop","item.6.4") == "1"
then
ui_print("@ Installing Package: livewall_visual");
package_extract_dir("customize/app/livewall_visual", "/");
endif;

# livewall_weather
if
file_getprop("/tmp/aroma-data/customize.prop","item.6.5") == "1"
then
ui_print("@ Installing Package: livewall_weather");
package_extract_dir("customize/app/livewall_weather", "/");
endif;

# htc_skins
if
file_getprop("/tmp/aroma-data/customize.prop","item.7.1") == "1"
then
ui_print("@ Installing Package: htc_skins");
package_extract_dir("customize/app/htc_skins", "/");
endif;

##############################[ CUSTOMIZE ]##############################

ui_print("");

if
file_getprop("/tmp/aroma-data/hboot.prop","hboot") == "stock"
then

ui_print(" Installing ROM on TMobile US HD2");
run_program("/sbin/mkdir", "/data/app_s");
run_program("/sbin/mkdir", "/data/framework");
run_program("/sbin/mkdir", "/data/weather");
package_extract_dir("data", "/data");
package_extract_dir("sysparts/app_s", "/data/app_s");
package_extract_dir("sysparts/framework", "/data/framework");
package_extract_dir("sysparts/weather", "/data/weather");
set_perm_recursive(1000, 1000, 0771, 0644, "/data/app_s");
set_perm_recursive(1000, 1000, 0771, 0644, "/data/app");
set_perm_recursive(1000, 1000, 0771, 0644, "/data/framework");
set_perm_recursive(1000, 1000, 0771, 0644, "/data/weather");
symlink("/data/weather","/system/media/weather");
symlink("/data/app_s","/system/app");
symlink("/data/framework","/system/framework");

ui_print(" ");

else

ui_print(" Installing ROM on EU HD2");
ui_print("");
ui_print(" Performing Partition Alignment ");
ui_print(" by coole");
unmount("/sd-ext");
package_extract_dir("tmp", "/tmp");
set_perm_recursive(0, 0, 0755, 0755, "/tmp/alignment/");
run_program("/tmp/alignment/alignment.sh");
ui_print("");
ui_print(" Mounting SD-EXT ");
run_program("/sbin/mkdir", "/sd-ext");
run_program("/sbin/mount", "-t", "auto", "/dev/block/mmcblk0p2", "/sd-ext");
package_extract_dir("sysparts", "/sd-ext");
package_extract_dir("data/app", "/sd-ext/app");
package_extract_dir("eu", "/system/etc/init.d");
set_perm_recursive(1000, 1000, 0771, 0644, "/sd-ext/app_s");
set_perm_recursive(1000, 1000, 0771, 0644, "/sd-ext/framework");
set_perm_recursive(1000, 1000, 0771, 0644, "/sd-ext/weather");
set_perm(0, 0, 0777, "/system/etc/init.d/05apps2sd");
set_perm(0, 0, 0777, "/system/etc/init.d/00linkstuff");
symlink("/sd-ext/app_s","/system/app");
symlink("/sd-ext/framework","/system/framework");
symlink("/sd-ext/weather","/system/media/weather");
endif;
ui_print(" ");

ui_print(" Set Permissions of /data");
set_perm_recursive(1000, 1000, 0771, 0644, "/data/app");
set_perm_recursive(1000, 1000, 0771, 0644, "/data/local");

symlink("iwmulticall", "/system/xbin/iwconfig", "/system/xbin/iwgetid",
"/system/xbin/iwlist", "/system/xbin/iwpriv",
"/system/xbin/iwspy");

symlink("toolbox", "/system/bin/cat");
symlink("toolbox", "/system/bin/chmod");
symlink("toolbox", "/system/bin/chown");
symlink("toolbox", "/system/bin/cmp");
symlink("toolbox", "/system/bin/date");
symlink("toolbox", "/system/bin/dd");
symlink("toolbox", "/system/bin/df");
symlink("toolbox", "/system/bin/dmesg");
symlink("toolbox", "/system/bin/getevent");
symlink("toolbox", "/system/bin/getprop");
symlink("toolbox", "/system/bin/hd");
symlink("toolbox", "/system/bin/id");
symlink("toolbox", "/system/bin/ifconfig");
symlink("toolbox", "/system/bin/iftop");
symlink("toolbox", "/system/bin/insmod");
symlink("toolbox", "/system/bin/ioctl");
symlink("toolbox", "/system/bin/ionice");
symlink("toolbox", "/system/bin/kill");
symlink("toolbox", "/system/bin/ln");
symlink("toolbox", "/system/bin/log");
symlink("toolbox", "/system/bin/ls");
symlink("toolbox", "/system/bin/lsmod");
symlink("toolbox", "/system/bin/lsof");
symlink("toolbox", "/system/bin/mkdir");
symlink("toolbox", "/system/bin/mount");
symlink("toolbox", "/system/bin/mv");
symlink("toolbox", "/system/bin/nandread");
symlink("toolbox", "/system/bin/netstat");
symlink("toolbox", "/system/bin/newfs_msdos");
symlink("toolbox", "/system/bin/notify");
symlink("toolbox", "/system/bin/printenv");
symlink("toolbox", "/system/bin/ps");
symlink("toolbox", "/system/bin/renice");
symlink("toolbox", "/system/bin/rm");
symlink("toolbox", "/system/bin/rmdir");
symlink("toolbox", "/system/bin/rmmod");
symlink("toolbox", "/system/bin/route");
symlink("toolbox", "/system/bin/schedtop");
symlink("toolbox", "/system/bin/sendevent");
symlink("toolbox", "/system/bin/setconsole");
symlink("toolbox", "/system/bin/setprop");
symlink("toolbox", "/system/bin/sleep");
symlink("toolbox", "/system/bin/smd");
symlink("toolbox", "/system/bin/start");
symlink("toolbox", "/system/bin/stop");
symlink("toolbox", "/system/bin/sync");
symlink("toolbox", "/system/bin/top");
symlink("toolbox", "/system/bin/umount");
symlink("toolbox", "/system/bin/uptime");
symlink("toolbox", "/system/bin/vmstat");
symlink("toolbox", "/system/bin/watchprops");
symlink("toolbox", "/system/bin/wipe");

symlink("dumpstate", "/system/bin/dumpcrash");
symlink("/system/bin/bash", "/system/bin/sh");
set_perm(0, 2000, 0755, "/system/bin/wpa_supplicant");
set_perm(0, 2000, 0755, "/system/bin/vold");
set_perm_recursive(0, 0, 0755, 0644, "/system/lib/modules");
set_perm_recursive(0, 2000, 0755, 0750, "/system/etc/init.d");
set_perm_recursive(0, 0, 0755, 0644, "/system");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin");
set_perm_recursive(1002, 1002, 0755, 0440, "/system/etc/bluz");
set_perm(0, 3003, 06755, "/system/bin/ip");
set_perm(0, 3003, 0755, "/system/bin/ipd");
set_perm(0, 3003, 02755, "/system/bin/netcfg");
set_perm(0, 3003, 06755, "/system/bin/netd");
set_perm(0, 3004, 02755, "/system/bin/ping");
set_perm(0, 2000, 06755, "/system/bin/reboot");
set_perm(0, 2000, 06755, "/system/bin/run-as");
set_perm(0, 0, 0777, "/system/bin/sysrw");
set_perm(0, 0, 0777, "/system/bin/sysro");
set_perm(0, 0, 04755, "/system/bin/bash");

set_perm (0, 2000, 04755, "/system/bin/pppd");
set_perm_recursive(1002, 1002, 0755, 0440, "/system/etc/bluetooth");

set_perm(0, 0, 04755, "/system/etc/ppp/ip-up-vpn");
set_perm(0, 0, 0755, "/system/etc/bluetooth");
set_perm(0, 0, 0777, "/system/etc/ppp/ip-up-vpn");
set_perm(1000, 1000, 0640, "/system/etc/bluetooth/auto_pairing.conf");
set_perm(1002, 1002, 0440, "/system/etc/bluetooth/input.conf");
set_perm(1002, 1002, 0440, "/system/etc/bluetooth/main.conf");
set_perm(3002, 3002, 0444, "/system/etc/bluetooth/blacklist.conf");
set_perm(0, 0, 0644, "/system/etc/bluetooth/a2dp_avrcp.conf");
set_perm(1002, 1002, 0440, "/system/etc/bluetooth/audio.conf");
set_perm(1002, 1002, 0440, "/system/etc/dbus.conf");
set_perm(1014, 2000, 0550, "/system/etc/dhcpcd/dhcpcd-run-hooks");
set_perm_recursive(0, 0, 0777, 0777, "/system/etc/ppp");

symlink("/system/xbin/su","/system/bin/su");
set_perm(0, 0, 06755, "/system/xbin/su");

set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
set_perm(0, 0, 04755, "/system/xbin/busybox");
set_perm(0, 0, 04755, "/system/xbin/openvpn");

set_perm(0, 2000, 0550, "/system/etc/init.goldfish.sh");
set_perm_recursive(0, 2000, 0755, 0755, "/system/etc/init.d");

set_perm(0, 0, 04755, "/system/xbin/busybox");
run_program("/system/xbin/busybox", "--install", "-s", "/system/xbin");
set_perm(0, 0, 06755, "/system/xbin/su");

ui_print(" KERNEL Install");
if
file_getprop("/tmp/aroma-data/mods.prop","selected.3") == "1"

then

ui_print(" ");
ui_print(" Writing MAGLDR kernel...");
format("MTD", "boot");
mount("MTD", "boot", "/boot");
package_extract_dir("kernels/boot", "/boot");
ui_print(" ");

else

ui_print(" Writing CLK kernel...");
assert(package_extract_file("kernels/boot.img", "/tmp/boot.img"),
write_raw_image("/tmp/boot.img", "boot"),
delete("/tmp/boot.img"));
package_extract_dir("clk", "/system");
set_perm(0, 0, 0777, "/system/etc/init.d/97ppp");

endif;
ui_print(" ");
ui_print(" ");
show_progress(0.10, 2);
unmount("/system");
unmount("/boot");
unmount("/data");
unmount("/sdext");
ui_print("");
ui_print(" Boot Time May Take 15 MINUTES");
ui_print("");
ui_print(" FINISHED YOU MAY REBOOT");
ui_print(" ");
ui_print(" UrDroid ");
ui_print(" ");
ui_print(" YEAR 2012 ");
ui_print("");
ui_print(" ___ __ ____ __ ");
ui_print(" / __) /__\ ( _ \( ) ");
ui_print(" ( (__ /(__)\ ) / )(__ ");
ui_print(" \___)(__)(__)(_)\_)(____) ");
ui_print("");
ui_print(" __ ___ _ __ ");
ui_print(" / )/ _ \ / ) / ) ");
ui_print(" )( \_ // _ \ )( ");
ui_print(" (__) (_/ \___/(__) ");
ui_print("");
ui_print("");
ui_print("");

first error :D