Not working for me. Ubuntu 13.04, 64-bit. Device I'm attempting to connect is an m7att (AT&T HTC One). The adb reboot test does not reboot the device, and when running adb reboot the error returned is "device not found." There's another error received but it's not triggered during the script..it only shows up when my device has just been rebooted and plugged into the computer. It's an MTP error about not being able to mount the usb device. I've tried manually editing the android.rules file I created myself previously but no configuration works. Also tried installing an ubuntu package for MTP FUSE filesystem mounting, also does not help. If my device hasn't been freshly rebooted, nothing even shows up when I plug it in to the USB. Not using usb 3.0 either, and adb devices also returns an empty line under "List of attached devices." I hope this wasn't too much information, just wanted to let you know it didn't work but that it's most likely not due to your script. Anyways very nice tool, simplistic yet really handy.
CURRENT - LG Optimus G E970 (AT&T) (rooted/unlocked)
w/Unofficial Liquid Smooth
& HTC One (AT&T) (rooted/unlocked/S-OFF)
AT&T Skyrocket i727 (rooted/carrier unlocked) w/Official CM10 Nightlies
USING - LG G2 D800 (AT&T)