[XPERIA X10 General] Leduck:
On my phone (Milestone 2 with Gingerbread 2.3.6) the root process worked, but part of the space check it returns 90% of free space, the software does not correctly identify and delete my google maps. The following screen to evaluate and correct the bug. And congratulations for the initiative, I'd have to do it by hand when I found your script ready.

---------------------------------------------------------------

Easy rooting toolkit (v4.0)

created by DooMLoRD

using exploit zergRush (Revolutionary Team)

This script has been ported by paxchristos and modified by amish

Credits go to all those involved in making this possible!

---------------------------------------------------------------

[*] This script will:

(1) root ur device using latest zergRush exploit (16 Nov)

(2) install Busybox (1.18.4)

(3) install SU files (binary: 3.0.3 and apk: 3.0.6)

(4) some checks for free space, tmp directory

(will remove Google Maps if required)

[*] Before u begin:

(1) make sure u have installed adb drivers for ur device

(2) enable 'USB DEBUGGING'

from (Menu\Settings\Applications\Development)

(3) enable 'UNKNOWN SOURCES'

from (Menu\Settings\Applications)

(4) [OPTIONAL] increase screen timeout to 10 minutes

(5) connect USB cable to PHONE and then connect to PC

(6) skip 'PC Companion Software' prompt on device

---------------------------------------------------------------

CONFIRM ALL THE ABOVE THEN

PRESS ENTER WITHIN 120 seconds TO CONTINUE OR ctrl-c to cancel

--Starting---

---Killing the adb server to make sure that there are no problems---

---Waiting for Device---

* daemon not running. starting it now on port 5037 *

* daemon started successfully *

---Cleaning out any previous zergRush attempts---

mkdir failed for /data/local/tmp, File exists

rm failed for /data/local/tmp/*, No such file or directory

---Pushing zergRush---

531 KB/s (23060 bytes in 0.042s)

---Fixing permissions for zergRush---

---Running zergRush---

If it gets stuck here for a long time then try:

1)disconnect usb cable and reconnect it

2)toggle 'Usb Debugging' (first disable it then reenable it)

[**] Zerg rush - Android 2.2/2.3 local root

[**] (C) 2011 Revolutionary. All rights reserved.

[**] Parts of code from Gingerbreak, (C) 2010-2011 The Android Exploid Crew.

[+] Found a GingerBread ! 0x00000118

[*] Scooting ...

[*] Sending 149 zerglings ...

[*] Sending 189 zerglings ...

[+] Zerglings found a way to enter ! 0x18

[+] Overseer found a path ! 0x000151e0

[*] Sending 189 zerglings ...

[+] Zerglings caused crash (good news): 0x4011ccd4 0x0074

[*] Researching Metabolic Boost ...

[+] Speedlings on the go ! 0xafd19413 0xafd3925f

[*] Sending 181 zerglings ...

[+] Rush did it ! It's a GG, man !

[+] Killing ADB and restarting as root... enjoy!

---Waiting for Device---

---Pushing busybox---

2011 KB/s (1075144 bytes in 0.522s)

---Fixing busybox permissions---

---remounting system---

---checking free space on /system---

10 KB/s (439 bytes in 0.040s)

--- Free space on /system : 90% bytes

test: 90%: bad number

--- NOT enough free space on /system!!!

--- making free space by removing Google Maps

---copying busybox to /system/xbin---

2099+1 records in

2099+1 records out

1075144 bytes transferred in 0.084 secs (12799333 bytes/sec)

---fixing ownership and permissions---

---installing busybox---

---cleaning up---

---pushing SU binary---

546 KB/s (22228 bytes in 0.039s)

---correcting ownership and permissions for SU---

---correcting symlinks---

---Pushing Superuser app---

2160 KB/s (785801 bytes in 0.355s)

--cleaning---

---rebooting---

---All done, your Xperia has been rooted by DooMLoRD---

---This script has been ported by paxchristos and modified by amish!!---

---If have any questions, feel free to email me @ nielson.peter@gmail.com---