#!/system/bin/busybox sh

echo rooting...
busybox mount -o remount,rw /system

cd /data/local/tmp
busybox cp su /system/xbin/su
busybox cp reboot-recovery /system/bin/reboot-recovery
chmod 755 /system/bin/reboot-recovery
chown 0:0 /system/xbin/su
chmod 6755 /system/xbin/su
busybox ln -sf /system/xbin/su /system/bin/su

busybox cp Superuser.apk /system/app/Superuser.apk
chown 0:0 /system/app/Superuser.apk
chmod 0644 /system/app/Superuser.apk
