Yes it can but I'm not familiar with converting batch files to sh files, you also need the linux fastboot.Can this be done on Linux without any issues? I'm going to assume you did this on Windows.
Okay thanks for the heads up, I actually bricked the boot, recovery, and radio partition because fastboot doesn't work right with my usb 3.0 ports. Yes RockMyMoto should work at rooting 4.2.2 if you haven't used MotoWpNoMo, if you have then SlapMyMoto will have to be used. I haven't had to use either so I don't know for sure.I ran into the same radio issue when flashing from 4.4. Maybe the original post should be updated to indicate possible problems with flashing from 4.4?
If we need to root 4.2.2, do you have a recommended root method? The SlapMyMoto 1.0 root method ends with updating to 4.4, so presumably that root method isn't applicable here. Would using RockMyMoto to root 4.2.2 be okay?
When you are booted into Android Safestrap actually saves the recovery.img and some other files in the /system partition. Then when you reboot to safestrap recovery it moves the files from the /system partition and loads them to the /sbin partition if I remember correctly then once you flash a rom it is supposed to copies the files back to the /system partition. Well when I was working on my 4.4 Rom I ran into issues where Safestrap wasn't copying the files back to the /system partition. So to avoid this problem I just included them in Rom then everything worked with no issues. As for the extracting the system.img go here http://forum.xda-developers.com/showthread.php?t=2501219Krypt, what do you use to extract the system.img file? Also, when you say root/safestrap is added in, do you just mean the APK?