chris41g

Auto link busybox minimal

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