• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Help With Updater-Script

kenny_2010

Lurker
Nov 17, 2010
4
0
Hi i have just modified my stock rom and i have just tried to install it using CWM recovery and i keep getting the same error all the time. the errors are:-
Line 245 col 59: syntax error, unexpected STRING, expecting ',' or ')'
Line 257 col 18: syntax error, unexpected ',', expecting IF or STRING or '!' or '('
Line 263 col 43: syntax error, unexpected STRING, expecting ',' or ')'
Line 296 col 1:syntax error, unexpected $end, expecting ',' or ')'
4 parse errors.

Please could someone help as i am going out of my mind trying to fix it!

Here is my updater-script:

show_progress(0.1, 0);
format("MTD", "system");
mount("MTD", "system", "/system");
package_extract_dir("system", "/system");
symlink("busybox", "/system/bin/ash");
symlink("busybox", "/system/bin/awk");
symlink("busybox", "/system/bin/base64");
symlink("busybox", "/system/bin/basename");
symlink("busybox", "/system/bin/blkid");
symlink("busybox", "/system/bin/bunzip2");
symlink("busybox", "/system/bin/bzcat");
symlink("busybox", "/system/bin/bzip2");
symlink("busybox", "/system/bin/cal");
symlink("toolbox", "/system/bin/cat");
symlink("busybox", "/system/bin/chattr");
symlink("busybox", "/system/bin/chgrp");
symlink("toolbox", "/system/bin/chmod");
symlink("toolbox", "/system/bin/chown");
symlink("busybox", "/system/bin/chroot");
symlink("busybox", "/system/bin/chrt");
symlink("busybox", "/system/bin/cksum");
symlink("busybox", "/system/bin/clear");
symlink("toolbox", "/system/bin/cmp");
symlink("busybox", "/system/bin/comm");
symlink("busybox", "/system/bin/cp");
symlink("busybox", "/system/bin/cpio");
symlink("busybox", "/system/bin/crond");
symlink("busybox", "/system/bin/crontab");
symlink("busybox", "/system/bin/cut");
symlink("toolbox", "/system/bin/date");
symlink("toolbox", "/system/bin/dd");
symlink("busybox", "/system/bin/depmod");
symlink("busybox", "/system/bin/devmem");
symlink("toolbox", "/system/bin/df");
symlink("busybox", "/system/bin/diff");
symlink("busybox", "/system/bin/dirname");
symlink("toolbox", "/system/bin/dmesg");
symlink("busybox", "/system/bin/dnsd");
symlink("busybox", "/system/bin/dnsdomainname");
symlink("busybox", "/system/bin/dos2unix");
symlink("busybox", "/system/bin/dpkg");
symlink("busybox", "/system/bin/dpkg-deb");
symlink("busybox", "/system/bin/du");
symlink("busybox", "/system/bin/echo");
symlink("busybox", "/system/bin/egrep");
symlink("busybox", "/system/bin/env");
symlink("busybox", "/system/bin/ether-wake");
symlink("busybox", "/system/bin/expand");
symlink("busybox", "/system/bin/expr");
symlink("busybox", "/system/bin/fakeidentd");
symlink("busybox", "/system/bin/fbset");
symlink("busybox", "/system/bin/fdflush");
symlink("busybox", "/system/bin/fdformat");
symlink("busybox", "/system/bin/fdisk");
symlink("busybox", "/system/bin/fgrep");
symlink("busybox", "/system/bin/find");
symlink("busybox", "/system/bin/fold");
symlink("busybox", "/system/bin/free");
symlink("busybox", "/system/bin/freeramdisk");
symlink("busybox", "/system/bin/fsck");
symlink("busybox", "/system/bin/fsync");
symlink("busybox", "/system/bin/ftpd");
symlink("busybox", "/system/bin/ftpget");
symlink("busybox", "/system/bin/ftpput");
symlink("toolbox", "/system/bin/getevent");
symlink("busybox", "/system/bin/getopt");
symlink("toolbox", "/system/bin/getprop");
symlink("busybox", "/system/bin/grep");
symlink("busybox", "/system/bin/groups");
symlink("busybox", "/system/bin/gunzip");
symlink("toolbox", "/system/bin/hd");
symlink("busybox", "/system/bin/head");
symlink("busybox", "/system/bin/hexdump");
symlink("busybox", "/system/bin/hostid");
symlink("busybox", "/system/bin/hostname");
symlink("busybox", "/system/bin/httpd");
symlink("busybox", "/system/bin/hwclock");
symlink("toolbox", "/system/bin/id");
symlink("toolbox", "/system/bin/ifconfig");
symlink("busybox", "/system/bin/ifenslave");
symlink("toolbox", "/system/bin/iftop");
symlink("busybox", "/system/bin/inetd");
symlink("busybox", "/system/bin/inotifyd");
symlink("toolbox", "/system/bin/insmod");
symlink("busybox", "/system/bin/install");
symlink("toolbox", "/system/bin/ioctl");
symlink("toolbox", "/system/bin/ionice");
symlink("busybox", "/system/bin/iostat");
symlink("busybox", "/system/bin/ipaddr");
symlink("busybox", "/system/bin/ipcalc");
symlink("busybox", "/system/bin/iplink");
symlink("busybox", "/system/bin/iproute");
symlink("busybox", "/system/bin/iprule");
symlink("busybox", "/system/bin/iptunnel");
symlink("toolbox", "/system/bin/kill");
symlink("busybox", "/system/bin/killall");
symlink("busybox", "/system/bin/killall5");
symlink("busybox", "/system/bin/less");
symlink("toolbox", "/system/bin/ln");
symlink("toolbox", "/system/bin/log");
symlink("busybox", "/system/bin/logname");
symlink("busybox", "/system/bin/losetup");
symlink("toolbox", "/system/bin/ls");
symlink("busybox", "/system/bin/lsattr");
symlink("toolbox", "/system/bin/lsmod");
symlink("toolbox", "/system/bin/lsof");
symlink("busybox", "/system/bin/lsusb");
symlink("busybox", "/system/bin/lzop");
symlink("busybox", "/system/bin/lzopcat");
symlink("busybox", "/system/bin/md5sum");
symlink("busybox", "/system/bin/microcom");
symlink("toolbox", "/system/bin/mkdir");
symlink("busybox", "/system/bin/mkdosfs");
symlink("busybox", "/system/bin/mke2fs");
symlink("busybox", "/system/bin/mkfifo");
symlink("busybox", "/system/bin/mkfs.ext2");
symlink("busybox", "/system/bin/mkfs.vfat");
symlink("busybox", "/system/bin/mknod");
symlink("busybox", "/system/bin/mkswap");
symlink("busybox", "/system/bin/modinfo");
symlink("busybox", "/system/bin/modprobe");
symlink("busybox", "/system/bin/more");
symlink("toolbox", "/system/bin/mount");
symlink("busybox", "/system/bin/mountpoint");
symlink("busybox", "/system/bin/mt");
symlink("toolbox", "/system/bin/mv");
symlink("busybox", "/system/bin/nameif");
symlink("busybox", "/system/bin/nanddump");
symlink("toolbox", "/system/bin/nandread");
symlink("busybox", "/system/bin/nandwrite");
symlink("busybox", "/system/bin/nc");
symlink("toolbox", "/system/bin/netstat");
symlink("toolbox", "/system/bin/newfs_msdos");
symlink("busybox", "/system/bin/nice");
symlink("busybox", "/system/bin/nmeter");
symlink("toolbox", "/system/bin/notify");
symlink("busybox", "/system/bin/nslookup");
symlink("busybox", "/system/bin/ntpd");
symlink("busybox", "/system/bin/od");
symlink("busybox", "/system/bin/patch");
symlink("busybox", "/system/bin/pgrep");
symlink("busybox", "/system/bin/pidof");
symlink("busybox", "/system/bin/pkill");
symlink("busybox", "/system/bin/pmap");
symlink("busybox", "/system/bin/powertop");
symlink("toolbox", "/system/bin/printenv");
symlink("busybox", "/system/bin/printf");
symlink("toolbox", "/system/bin/ps");
symlink("busybox", "/system/bin/pscan");
symlink("busybox", "/system/bin/pwd");
symlink("toolbox", "/system/bin/r");
symlink("busybox", "/system/bin/rdate");
symlink("busybox", "/system/bin/rdev");
symlink("busybox", "/system/bin/readahead");
symlink("busybox", "/system/bin/readlink");
symlink("busybox", "/system/bin/realpath");
symlink("toolbox", "/system/bin/reboot");
symlink("toolbox", "/system/bin/renice");
symlink("busybox", "/system/bin/reset");
symlink("busybox", "/system/bin/rev");
symlink("busybox", "/system/bin/rfkill");
symlink("toolbox", "/system/bin/rm");
symlink("toolbox", "/system/bin/rmdir");
symlink("toolbox", "/system/bin/rmmod");
symlink("toolbox", "/system/bin/route");
symlink("busybox", "/system/bin/run-parts");
symlink("toolbox", "/system/bin/schedtop");
symlink("busybox", "/system/bin/script");
symlink("busybox", "/system/bin/scriptreplay");
symlink("busybox", "/system/bin/sed");
symlink("toolbox", "/system/bin/sendevent");
symlink("busybox", "/system/bin/sendmail");
symlink("busybox", "/system/bin/seq");
symlink("toolbox", "/system/bin/setconsole");
symlink("busybox", "/system/bin/setkeycodes");
symlink("busybox", "/system/bin/setlogcons");
symlink("toolbox", "/system/bin/setprop");
symlink("busybox", "/system/bin/setsid");
symlink("mksh", "/system/bin/sh");
symlink("busybox", "/system/bin/sha1sum");
symlink("busybox", "/system/bin/sha256sum");
symlink("busybox", "/system/bin/sha512sum");
symlink("busybox", "/system/bin/showkey");
symlink("toolbox", "/system/bin/sleep");
symlink("toolbox", "/system/bin/smd");
symlink("busybox", "/system/bin/smemcap");
symlink("busybox", "/system/bin/sort");
symlink("busybox", "/system/bin/split");
symlink("toolbox", "/system/bin/start");
symlink("busybox", "/system/bin/stat");
symlink("toolbox", "/system/bin/stop");
symlink("busybox", "/system/bin/strings");
symlink("busybox", "/system/bin/stty");
symlink("busybox", "/system/bin/sum");
symlink("busybox", "/system/bin/swapoff");
symlink("busybox", "/system/bin/swapon");
symlink("toolbox", "/system/bin/sync");
symlink("busybox", "/system/bin/sysctl");
symlink("busybox", "/system/bin/tac");
symlink("busybox", "/system/bin/tail");
symlink("busybox", "/system/bin/tar");
symlink("busybox", "/system/bin/tee");
symlink("busybox", "/system/bin/telnet");
symlink("busybox", "/system/bin/telnetd");
symlink("busybox", "/system/bin/test");
symlink("busybox", "/system/bin/tftp");
symlink("busybox", "/system/bin/tftpd");
symlink("busybox", "/system/bin/time");
symlink("busybox", "/system/bin/timeout");
symlink("toolbox", "/system/bin/top");
symlink("toolbox", "/system/bin/touch");
symlink("busybox", "/system/bin/tr");
symlink("busybox", "/system/bin/traceroute");
symlink("busybox", "/system/bin/traceroute6");
symlink("busybox", "/system/bin/tty");
symlink("busybox", "/system/bin/ttysize");
symlink("busybox", "/system/bin/tunctl");
symlink("toolbox", "/system/bin/umount");
symlink("busybox", "/system/bin/uname");
symlink("busybox", "/system/bin/uncompress");
symlink("busybox", "/system/bin/unexpand");
symlink("busybox", "/system/bin/uniq");
symlink("busybox", "/system/bin/unix2dos");
symlink("busybox", "/system/bin/unlzop");
symlink("busybox", "/system/bin/unzip");
symlink("toolbox", "/system/bin/uptime");
symlink("busybox", "/system/bin/usleep");
symlink("busybox", "/system/bin/uudecode");
symlink("busybox", "/system/bin/uuencode");
symlink("busybox", "/system/bin/vconfig");
symlink("busybox", "/system/bin/vi");
symlink("toolbox", "/system/bin/vmstat");
symlink("busybox", "/system/bin/watch");
symlink("toolbox", "/system/bin/watchprops");
symlink("busybox", "/system/bin/wc");
symlink("busybox", "/system/bin/wget");
symlink("busybox", "/system/bin/which");
symlink("busybox", "/system/bin/who");
symlink("busybox", "/system/bin/whoami");
symlink("busybox", "/system/bin/whois");
symlink("toolbox", "/system/bin/wipe");
symlink("busybox", "/system/bin/xargs");
symlink("busybox", "/system/bin/zcat symlink busybox /system/bin/[");
symlink("busybox", "/system/bin/[[");
set_perm_recursive(0, 0, 0755, 0644, "/system/ui_print(""");
ui_print("");
ui_print("");
ui_print("");
ui_print(""); ui_print(" **************************************");
ui_print(" * ...TEAM INFERNO... *");
ui_print(" * *MODIFIED BEATS* *");
ui_print(" * UNIVERSAL EDITION by ...Awesome... *");
ui_print(" **************************************");
ui_print("");
ui_print("Mounting system...");
run_program("/sbin/busybox", "mount", "/system");
show_progress(1,, 15);
ui_print("");
ui_print("Deleting DSP Manager...");
delete("/system/app/DSPManager.apk");
ui_print("");
ui_print("Copying new Files...");
package_extract_dir("system",", ""/system");
ui_print("");
ui_print("Unmounting system...");
run_program("/sbin/busybox", "umount", "/system");
ui_print("Installation complete!");
ui_print("");
ui_print("PM ...Awesome... @ XDA DEVELOPMENT!");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin");
set_perm(0, 3003, 06755, "/system/bin/ip");
set_perm(0, 3003, 02750, "/system/bin/netcfg");
set_perm(0, 3004, 02755, "/system/bin/ping");
set_perm(0, 2000, 06750, "/system/bin/run-as");
set_perm_recursive(1002, 1002, 0755, 0440, "/system/etc/bluetooth");
set_perm(0, 0, 0755, "/system/etc/bluetooth");
set_perm(1000, 1000, 0640, "/system/etc/bluetooth/auto_pairing.conf");
set_perm(3002, 3002, 0444, "/system/etc/bluetooth/blacklist.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");
set_perm_recursive(0, 0, 0755, 0555, "/system/etc/ppp");
set_perm_recursive(0, 2000, 0755, 0644, "/system/vendor");
set_perm_recursive(0, 0, 0755, 0644, "/system/vendor/firmware");
set_perm(0, 2000, 0755, "/system/vendor/firmware");
set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
set_perm(0, 0, 06755, "/system/xbin/su");
symlink("/system/xbin/su", "/system/bin/su");
show_progress(0.1, 10);
show_progress(0.2, 0);
assert(package_extract_file("boot.img", "/tmp/boot.img"),
write_raw_image("/tmp/boot.img", "boot"),
delete("/tmp/boot.img"));
show_progress(0.2, 10);
unmount("/system");

Thank you all in advanced
 

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones