[Sony Xperia S, Acro S, Ion] mpkossen:
This is the missing function for the Z1 on the Linux script in v32:

z1root() {
echo Please connect your device with enabled USB-Debugging ...
./stuff/adb wait-for-device
echo "Copy needed files ..."
./stuff/adb push stuff\/getroot /data/local/tmp/
./stuff/adb push stuff\/su /data/local/tmp/
./stuff/adb push stuff\/Superuser.apk /data/local/tmp/
./stuff/adb push stuff\/busybox /data/local/tmp/
./stuff/adb push stuff\/00stop_ric /data/local/tmp/
./stuff/adb push stuff\/install_tool.sh /data/local/tmp/
./stuff/adb shell "chmod 0755 /data/local/tmp/getroot"
./stuff/adb shell "chmod 0755 /data/local/tmp/busybox"
./stuff/adb shell "chmod 0755 /data/local/tmp/install_tool.sh"
echo "Running Exploit"
./stuff/adb shell "/data/local/tmp/getroot"
./stuff/adb shell "rm /data/local/tmp/getroot"
./stuff/adb shell "rm /data/local/tmp/su"
./stuff/adb shell "rm /data/local/tmp/Superuser.apk"
./stuff/adb shell "rm /data/local/tmp/busybox"
./stuff/adb shell "rm /data/local/tmp/00stop_ric"
./stuff/adb shell "rm /data/local/tmp/install_tool.sh"
echo "Rebooting now, after reboot all should be done!"
./stuff/adb reboot
finish
}

I tested in on my own Z1 with Ubuntu 13.10. Worked like a charm. It isn't able to find two files and it gives a notice at the end about a call to 'read' in the finish function. Apparently, 'read' doesn't have an -n flag. Didn't care much about that. Like I said, it works and I didn't bother too much to polish it.

This is my log, just for the sake of completeness:

==================================================================================================
= This script will root your Android phone with adb restore function =
= Script by Bin4ry(converted to shell by jamcswain) (thanks to Goroh_kun and tkymgr for the idea) =
= Idea for Tablet S from Fi01_IS01 =
= (20.11.2013) v32 =
===================================================================================================

Device type:
0) Xperia Z1 14.1.G.1.534 Root by cubeundcube
1) Normal
2) Special (for example: Sony Tablet S, Medion Lifetab)
3) New Xperia Root by Goroh_kun
G) Google Glass Root (thx to Saurik for the ab file)

x) Unroot

Make a choice:
Please enter a valid number(1 to x):
0

Please connect your device with enabled USB-Debugging ...
Copy needed files ...
298 KB/s (13592 bytes in 0.044s)
3069 KB/s (104556 bytes in 0.033s)
2352 KB/s (2242263 bytes in 0.930s)
4462 KB/s (1165484 bytes in 0.255s)
3 KB/s (148 bytes in 0.040s)
29 KB/s (1230 bytes in 0.040s)
Running Exploit
Wait a minutes...
Succeeded in getroot!
mount: Device or resource busy
rm failed for /system/bin/su, No such file or directory
rm failed for /system/xbin/su, No such file or directory
204+1 records in
204+1 records out
104556 bytes transferred in 0.003 secs (34852000 bytes/sec)
4379+1 records in
4379+1 records out
2242263 bytes transferred in 0.073 secs (30715931 bytes/sec)
2276+1 records in
2276+1 records out
1165484 bytes transferred in 0.057 secs (20447087 bytes/sec)
0+1 records in
0+1 records out
148 bytes transferred in 0.001 secs (148000 bytes/sec)
Rebooting now, after reboot all should be done!
You can close all open command-prompts now!
After reboot all is done! Have fun!
Bin4ry
./RunMe.sh: 193: read: Illegal option -n