1 2 3 4 5 6 7 8 9 10
#!/bin/sh for process in deviced aapsinkd aaptransferd do pid=`pidof $process` if [ "$pid" != "" ] then kill -9 $pid fi done