chris41g

Uninstall Busybox

Oct 8th, 2011
315
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 3.63 KB | None | 0 0
  1. #!/sbin/sh
  2. exec > /dev/null 2>&1;
  3. busybox ls -1 /system/xbin | while read line
  4.   do
  5.     if busybox [ "$(busybox basename `busybox readlink /system/xbin/$line`)" = "busybox" ]; then
  6.         busybox rm /system/xbin/${line};
  7.     fi;
  8.     if busybox [ "$(busybox basename `busybox readlink /system/xbin/$line`)" = "recovery" ]; then
  9.         busybox rm /system/xbin/${line};
  10.     fi;
  11.   done
  12. busybox ls -1 /system/bin | while read line
  13.   do
  14.     if busybox [ "$(busybox basename `busybox readlink /system/bin/$line`)" = "busybox" ]; then
  15.         busybox rm /system/bin/${line};
  16.     fi;
  17.         if busybox [ "$(busybox basename `busybox readlink /system/bin/$line`)" = "recovery" ]; then
  18.         busybox rm /system/bin/${line};
  19.     fi;
  20.   done
  21. busybox ln -s /system/bin/toolbox  /system/bin/cat;
  22. busybox ln -s /system/bin/toolbox  /system/bin/chmod;
  23. busybox ln -s /system/bin/toolbox  /system/bin/chown;
  24. busybox ln -s /system/bin/toolbox  /system/bin/cmp;
  25. busybox ln -s /system/bin/toolbox  /system/bin/date;
  26. busybox ln -s /system/bin/toolbox  /system/bin/dd;
  27. busybox ln -s /system/bin/toolbox  /system/bin/df;
  28. busybox ln -s /system/bin/toolbox  /system/bin/dmesg;
  29. busybox ln -s /system/bin/toolbox  /system/bin/getevent;
  30. busybox ln -s /system/bin/toolbox  /system/bin/getprop;
  31. busybox ln -s /system/bin/toolbox  /system/bin/hd;
  32. busybox ln -s /system/bin/toolbox  /system/bin/id;
  33. busybox ln -s /system/bin/toolbox  /system/bin/ifconfig;
  34. busybox ln -s /system/bin/toolbox  /system/bin/iftop;
  35. busybox ln -s /system/bin/toolbox  /system/bin/insmod;
  36. busybox ln -s /system/bin/toolbox  /system/bin/ioctl;
  37. busybox ln -s /system/bin/toolbox  /system/bin/ionice;
  38. busybox ln -s /system/bin/toolbox  /system/bin/kill;
  39. busybox ln -s /system/bin/toolbox  /system/bin/ln;
  40. busybox ln -s /system/bin/toolbox  /system/bin/log;
  41. busybox ln -s /system/bin/toolbox  /system/bin/ls;
  42. busybox ln -s /system/bin/toolbox  /system/bin/lsmod;
  43. busybox ln -s /system/bin/toolbox  /system/bin/lsof;
  44. busybox ln -s /system/bin/toolbox  /system/bin/mkdir;
  45. busybox ln -s /system/bin/toolbox  /system/bin/mount;
  46. busybox ln -s /system/bin/toolbox  /system/bin/mv;
  47. busybox ln -s /system/bin/toolbox  /system/bin/nandread;
  48. busybox ln -s /system/bin/toolbox  /system/bin/netstat;
  49. busybox ln -s /system/bin/toolbox  /system/bin/newfs_msdos;
  50. busybox ln -s /system/bin/toolbox  /system/bin/notify;
  51. busybox ln -s /system/bin/toolbox  /system/bin/printenv;
  52. busybox ln -s /system/bin/toolbox  /system/bin/ps;
  53. busybox ln -s /system/bin/toolbox  /system/bin/reboot;
  54. busybox ln -s /system/bin/toolbox  /system/bin/renice;
  55. busybox ln -s /system/bin/toolbox  /system/bin/rm;
  56. busybox ln -s /system/bin/toolbox  /system/bin/rmdir;
  57. busybox ln -s /system/bin/toolbox  /system/bin/rmmod;
  58. busybox ln -s /system/bin/toolbox  /system/bin/route;
  59. busybox ln -s /system/bin/toolbox  /system/bin/schedtop;
  60. busybox ln -s /system/bin/toolbox  /system/bin/sendevent;
  61. busybox ln -s /system/bin/toolbox  /system/bin/setconsole;
  62. busybox ln -s /system/bin/toolbox  /system/bin/setprop;
  63. busybox ln -s /system/bin/toolbox  /system/bin/sleep;
  64. busybox ln -s /system/bin/toolbox  /system/bin/smd;
  65. busybox ln -s /system/bin/toolbox  /system/bin/start;
  66. busybox ln -s /system/bin/toolbox  /system/bin/stop;
  67. busybox ln -s /system/bin/toolbox  /system/bin/sync;
  68. busybox ln -s /system/bin/toolbox  /system/bin/top;
  69. busybox ln -s /system/bin/toolbox  /system/bin/umount;
  70. busybox ln -s /system/bin/toolbox  /system/bin/uptime;
  71. busybox ln -s /system/bin/toolbox  /system/bin/vmstat;
  72. busybox ln -s /system/bin/toolbox  /system/bin/watchprops;
  73. busybox ln -s /system/bin/toolbox  /system/bin/wipe;
  74. busybox rm /system/bin/busybox;
  75. busybox rm /system/xbin/busybox;
Advertisement
Add Comment
Please, Sign In to add comment