[General Questions and Answers] Shining Sagar:
Twrp Error 6 (3.0.2.0) Need Urgent Help!!!

ui_print("******************************************");

ui_print("____________Micromax_Q346_Bolt____________");

ui_print("_________Project_Speed_mini_v.0.5 ________");

ui_print("******************************************");

set_progress(1.000000);

show_progress(0.500000, 0);

ui_print("format to partition /system...");

unmount("/system");

format("ext4", "EMMC", "/dev/block/platform/sprd-sdhci.3/by-name/system", "0", "/system");

mount("ext4", "EMMC", "/dev/block/platform/sprd-sdhci.3/by-name/system", "/system");

ui_print("Unpacking system...");

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

ui_print("Creating symlinks...");

symlink("/data/local/media/vbc_eq", "/system/vendor/firmware/vbc_eq");

symlink("/lib/modules/autotst.ko", "/system/lib/modules/autotst.ko");

symlink("/lib/modules/gator.ko", "/system/lib/modules/gator.ko");

symlink("/lib/modules/mmc_test.ko", "/system/lib/modules/mmc_test.ko");

symlink("/lib/modules/sprdwl.ko", "/system/lib/modules/sprdwl.ko");

symlink("/lib/modules/trout_fm.ko", "/system/lib/modules/trout_fm.ko");

symlink("/system/lib/libbluetooth_jni.so", "/system/app/Bluetooth/lib/arm/libbluetooth_jni.so");

symlink("/system/lib/libdefcontainer_jni.so", "/system/priv-app/DefaultContainerService/lib/arm/libdefcontainer_jni.so");

symlink("/system/lib/libjni_jpegutil.so", "/system/app/Camera2/lib/arm/libjni_jpegutil.so");

symlink("/system/lib/libjni_pacprocessor.so", "/system/app/PacProcessor/lib/arm/libjni_pacprocessor.so");

symlink("/system/lib/libjni_tinyplanet.so", "/system/app/Camera2/lib/arm/libjni_tinyplanet.so");

symlink("/system/lib/libprintspooler_jni.so", "/system/app/PrintSpooler/lib/arm/libprintspooler_jni.so");

symlink("Roboto-Bold.ttf", "/system/fonts/DroidSans-Bold.ttf");

symlink("Roboto-Regular.ttf", "/system/fonts/DroidSans.ttf");

symlink("app_process32", "/system/bin/app_process");

symlink("dalvikvm32", "/system/bin/dalvikvm");

symlink("libGLESv2.so", "/system/lib/libGLESv3.so");

symlink("toolbox", "/system/bin/cat", "/system/bin/chcon",

"/system/bin/chmod", "/system/bin/chown", "/system/bin/clear",

"/system/bin/cmp", "/system/bin/cp", "/system/bin/date",

"/system/bin/dd", "/system/bin/df", "/system/bin/dmesg",

"/system/bin/du", "/system/bin/getenforce", "/system/bin/getevent",

"/system/bin/getprop", "/system/bin/getsebool", "/system/bin/grep",

"/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/load_policy", "/system/bin/log", "/system/bin/ls",

"/system/bin/lsmod", "/system/bin/lsof", "/system/bin/md5",

"/system/bin/mkdir", "/system/bin/mknod", "/system/bin/mkswap",

"/system/bin/mount", "/system/bin/mv", "/system/bin/nandread",

"/system/bin/netstat", "/system/bin/newfs_msdos", "/system/bin/nohup",

"/system/bin/notify", "/system/bin/printenv", "/system/bin/prlimit",

"/system/bin/ps", "/system/bin/readlink", "/system/bin/renice",

"/system/bin/restorecon", "/system/bin/rm", "/system/bin/rmdir",

"/system/bin/rmmod", "/system/bin/route", "/system/bin/runcon",

"/system/bin/schedtop", "/system/bin/sendevent",

"/system/bin/setenforce", "/system/bin/setprop",

"/system/bin/setsebool", "/system/bin/sleep", "/system/bin/smd",

"/system/bin/start", "/system/bin/stop", "/system/bin/swapoff",

"/system/bin/swapon", "/system/bin/sync", "/system/bin/top",

"/system/bin/touch", "/system/bin/umount", "/system/bin/uptime",

"/system/bin/vmstat", "/system/bin/watchprops",

"/system/bin/wipe");

ui_print("Set permissing...");

set_metadata_recursive("/system", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0644, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");

set_metadata_recursive("/system/bin", "uid", 0, "gid", 2000, "dmode", 0755, "fmode", 0755, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");

set_metadata("/system/bin/app_process32", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:zygote_exec:s0");

set_metadata("/system/bin/batterysrv", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:batterysrv_exec:s0");

set_metadata("/system/bin/bootanimation", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:bootanim_exec:s0");

set_metadata("/system/bin/clatd", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:clatd_exec:s0");

set_metadata("/system/bin/cp_diskserver", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:cp_diskserver_exec:s0");

set_metadata("/system/bin/debuggerd", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:debuggerd_exec:s0");

set_metadata("/system/bin/dex2oat", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:dex2oat_exec:s0");

set_metadata("/system/bin/dhcpcd", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:dhcp_exec:s0");

set_metadata("/system/bin/dnsmasq", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:dnsmasq_exec:s0");

set_metadata("/system/bin/drmserver", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:drmserver_exec:s0");

set_metadata("/system/bin/dumpstate", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:dumpstate_exec:s0");

set_metadata("/system/bin/engpc", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:engpc_exec:s0");

set_metadata("/system/bin/hostapd", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:hostapd_exec:s0");

set_metadata("/system/bin/install-recovery.sh", "uid", 0, "gid", 0, "mode", 0750, "capabilities", 0x0, "selabel", "u:object_r:install_recovery_exec:s0");

Please fix this script.!!!!Thanks in advance.