Perka

updater-scrip Perka

Mar 18th, 2013
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.45 KB | None | 0 0
  1. ui_print(" ");
  2. ui_print("Perka Stash Release");
  3. ui_print(" ");
  4. ui_print("http://perka.zapto.org/");
  5. ui_print(" ");
  6. run_program("/sbin/mount", "/cache");
  7. unmount("/system");
  8. format("ext4", "EMMC", "/dev/block/mmcblk0p9", "0");
  9. mount("ext4", "EMMC", "/dev/block/mmcblk0p9", "/system");
  10. mount("ext4", "EMMC", "/dev/block/mmcblk0p8", "/cache");
  11. delete_recursive("/cache");
  12. mount("ext4", "EMMC", "/dev/block/mmcblk0p12", "/data");
  13. delete_recursive("/data/dalvik-cache");
  14. show_progress(0.500000, 80);
  15. ui_print("Installing system ...");
  16. package_extract_dir("system", "/system");
  17. symlink("Roboto-Bold.ttf", "/system/fonts/DroidSans-Bold.ttf");
  18. symlink("Roboto-Regular.ttf", "/system/fonts/DroidSans.ttf");
  19. symlink("busybox", "/system/xbin/[", "/system/xbin/[[",
  20. "/system/xbin/adjtimex", "/system/xbin/arp", "/system/xbin/ash",
  21. "/system/xbin/awk", "/system/xbin/base64", "/system/xbin/basename",
  22. "/system/xbin/bbconfig", "/system/xbin/blkid", "/system/xbin/blockdev",
  23. "/system/xbin/brctl", "/system/xbin/bunzip2", "/system/xbin/bzcat",
  24. "/system/xbin/bzip2", "/system/xbin/cal", "/system/xbin/cat",
  25. "/system/xbin/catv", "/system/xbin/chattr", "/system/xbin/chgrp",
  26. "/system/xbin/chmod", "/system/xbin/chown", "/system/xbin/chroot",
  27. "/system/xbin/clear", "/system/xbin/cmp", "/system/xbin/comm",
  28. "/system/xbin/cp", "/system/xbin/cpio", "/system/xbin/crond",
  29. "/system/xbin/crontab", "/system/xbin/cut", "/system/xbin/date",
  30. "/system/xbin/dc", "/system/xbin/dd", "/system/xbin/depmod",
  31. "/system/xbin/devmem", "/system/xbin/df", "/system/xbin/diff",
  32. "/system/xbin/dirname", "/system/xbin/dmesg", "/system/xbin/dnsd",
  33. "/system/xbin/dos2unix", "/system/xbin/du", "/system/xbin/echo",
  34. "/system/xbin/ed", "/system/xbin/egrep", "/system/xbin/env",
  35. "/system/xbin/expand", "/system/xbin/expr", "/system/xbin/false",
  36. "/system/xbin/fdisk", "/system/xbin/fgrep", "/system/xbin/find",
  37. "/system/xbin/flash_lock", "/system/xbin/flash_unlock",
  38. "/system/xbin/flashcp", "/system/xbin/flock", "/system/xbin/fold",
  39. "/system/xbin/free", "/system/xbin/freeramdisk", "/system/xbin/fsync",
  40. "/system/xbin/ftpget", "/system/xbin/ftpput", "/system/xbin/fuser",
  41. "/system/xbin/getopt", "/system/xbin/grep", "/system/xbin/groups",
  42. "/system/xbin/gunzip", "/system/xbin/gzip", "/system/xbin/halt",
  43. "/system/xbin/head", "/system/xbin/hexdump", "/system/xbin/id",
  44. "/system/xbin/ifconfig", "/system/xbin/inetd", "/system/xbin/insmod",
  45. "/system/xbin/install", "/system/xbin/iostat", "/system/xbin/ip",
  46. "/system/xbin/kill", "/system/xbin/killall", "/system/xbin/killall5",
  47. "/system/xbin/length", "/system/xbin/less", "/system/xbin/ln",
  48. "/system/xbin/losetup", "/system/xbin/ls", "/system/xbin/lsattr",
  49. "/system/xbin/lsmod", "/system/xbin/lsusb", "/system/xbin/lzcat",
  50. "/system/xbin/lzma", "/system/xbin/lzop", "/system/xbin/lzopcat",
  51. "/system/xbin/man", "/system/xbin/md5sum", "/system/xbin/mesg",
  52. "/system/xbin/mkdir", "/system/xbin/mke2fs", "/system/xbin/mkfifo",
  53. "/system/xbin/mkfs.ext2", "/system/xbin/mkfs.vfat",
  54. "/system/xbin/mknod", "/system/xbin/mkswap", "/system/xbin/mktemp",
  55. "/system/xbin/modinfo", "/system/xbin/modprobe", "/system/xbin/more",
  56. "/system/xbin/mount", "/system/xbin/mountpoint", "/system/xbin/mpstat",
  57. "/system/xbin/mv", "/system/xbin/nanddump", "/system/xbin/nandwrite",
  58. "/system/xbin/netstat", "/system/xbin/nice", "/system/xbin/nohup",
  59. "/system/xbin/nslookup", "/system/xbin/ntpd", "/system/xbin/od",
  60. "/system/xbin/patch", "/system/xbin/pgrep", "/system/xbin/pidof",
  61. "/system/xbin/ping", "/system/xbin/pkill", "/system/xbin/pmap",
  62. "/system/xbin/poweroff", "/system/xbin/printenv", "/system/xbin/printf",
  63. "/system/xbin/ps", "/system/xbin/pstree", "/system/xbin/pwd",
  64. "/system/xbin/pwdx", "/system/xbin/rdev", "/system/xbin/readlink",
  65. "/system/xbin/realpath", "/system/xbin/renice", "/system/xbin/reset",
  66. "/system/xbin/resize", "/system/xbin/rev", "/system/xbin/rm",
  67. "/system/xbin/rmdir", "/system/xbin/rmmod", "/system/xbin/route",
  68. "/system/xbin/run-parts", "/system/xbin/rx", "/system/xbin/sed",
  69. "/system/xbin/seq", "/system/xbin/setconsole", "/system/xbin/setserial",
  70. "/system/xbin/setsid", "/system/xbin/sh", "/system/xbin/sha1sum",
  71. "/system/xbin/sha256sum", "/system/xbin/sha512sum",
  72. "/system/xbin/sleep", "/system/xbin/sort", "/system/xbin/split",
  73. "/system/xbin/stat", "/system/xbin/strings", "/system/xbin/stty",
  74. "/system/xbin/sum", "/system/xbin/swapoff", "/system/xbin/swapon",
  75. "/system/xbin/sync", "/system/xbin/sysctl", "/system/xbin/tac",
  76. "/system/xbin/tail", "/system/xbin/tar", "/system/xbin/taskset",
  77. "/system/xbin/tee", "/system/xbin/telnet", "/system/xbin/telnetd",
  78. "/system/xbin/test", "/system/xbin/tftp", "/system/xbin/tftpd",
  79. "/system/xbin/time", "/system/xbin/timeout", "/system/xbin/top",
  80. "/system/xbin/touch", "/system/xbin/tr", "/system/xbin/traceroute",
  81. "/system/xbin/true", "/system/xbin/ttysize", "/system/xbin/tune2fs",
  82. "/system/xbin/umount", "/system/xbin/uname", "/system/xbin/uncompress",
  83. "/system/xbin/unexpand", "/system/xbin/uniq", "/system/xbin/unix2dos",
  84. "/system/xbin/unlzma", "/system/xbin/unlzop", "/system/xbin/unxz",
  85. "/system/xbin/unzip", "/system/xbin/uptime", "/system/xbin/usleep",
  86. "/system/xbin/uudecode", "/system/xbin/uuencode", "/system/xbin/vi",
  87. "/system/xbin/watch", "/system/xbin/wc", "/system/xbin/wget",
  88. "/system/xbin/which", "/system/xbin/whoami", "/system/xbin/xargs",
  89. "/system/xbin/xz", "/system/xbin/xzcat", "/system/xbin/yes",
  90. "/system/xbin/zcat");
  91. symlink("mksh", "/system/bin/sh");
  92. symlink("toolbox", "/system/bin/cat", "/system/bin/chmod",
  93. "/system/bin/chown", "/system/bin/cmp", "/system/bin/date",
  94. "/system/bin/dd", "/system/bin/df", "/system/bin/dmesg",
  95. "/system/bin/getevent", "/system/bin/getprop", "/system/bin/hd",
  96. "/system/bin/id", "/system/bin/ifconfig", "/system/bin/iftop",
  97. "/system/bin/insmod", "/system/bin/ioctl", "/system/bin/ionice",
  98. "/system/bin/kill", "/system/bin/ln", "/system/bin/log",
  99. "/system/bin/ls", "/system/bin/lsmod", "/system/bin/lsof",
  100. "/system/bin/md5", "/system/bin/mkdir", "/system/bin/mount",
  101. "/system/bin/mv", "/system/bin/nandread", "/system/bin/netstat",
  102. "/system/bin/newfs_msdos", "/system/bin/notify", "/system/bin/printenv",
  103. "/system/bin/ps", "/system/bin/r", "/system/bin/reboot",
  104. "/system/bin/renice", "/system/bin/rm", "/system/bin/rmdir",
  105. "/system/bin/rmmod", "/system/bin/route", "/system/bin/schedtop",
  106. "/system/bin/sendevent", "/system/bin/setconsole",
  107. "/system/bin/setprop", "/system/bin/sleep", "/system/bin/smd",
  108. "/system/bin/start", "/system/bin/stop", "/system/bin/sync",
  109. "/system/bin/top", "/system/bin/touch", "/system/bin/umount",
  110. "/system/bin/uptime", "/system/bin/vmstat", "/system/bin/watchprops",
  111. "/system/bin/wipe");
  112. set_perm_recursive(0, 0, 0755, 0644, "/system");
  113. set_perm_recursive(0, 0, 0755, 0755, "/system/etc/init.d");
  114. set_perm_recursive(0, 2000, 0755, 0755, "/system/bin");
  115. set_perm(0, 3003, 06755, "/system/bin/ip");
  116. set_perm(0, 3003, 02750, "/system/bin/netcfg");
  117. set_perm(0, 3004, 02755, "/system/bin/ping");
  118. set_perm(0, 2000, 06750, "/system/bin/run-as");
  119. set_perm_recursive(1002, 1002, 0755, 0440, "/system/etc/bluetooth");
  120. set_perm(0, 0, 0755, "/system/etc/bluetooth");
  121. set_perm(1000, 1000, 0640, "/system/etc/bluetooth/auto_pairing.conf");
  122. set_perm(3002, 3002, 0444, "/system/etc/bluetooth/blacklist.conf");
  123. set_perm(1002, 1002, 0440, "/system/etc/dbus.conf");
  124. set_perm(1014, 2000, 0550, "/system/etc/dhcpcd/dhcpcd-run-hooks");
  125. set_perm(0, 2000, 0550, "/system/etc/init.goldfish.sh");
  126. set_perm_recursive(0, 0, 0755, 0555, "/system/etc/ppp");
  127. set_perm_recursive(0, 2000, 0755, 0644, "/system/vendor");
  128. set_perm_recursive(0, 0, 0755, 0644, "/system/vendor/firmware");
  129. set_perm(0, 2000, 0755, "/system/vendor/firmware");
  130. set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
  131. set_perm(0, 0, 06755, "/system/xbin/su");
  132. show_progress(0.100000, 0);
  133.  
  134. unmount("/system");
  135. unmount("/data");
Add Comment
Please, Sign In to add comment