fix script to work with arrays using bash instead of sh

Change-Id: I5a17cc90f8b523d9d7899bb4367da3acfbf3e002
jf: signal strength fixes

Change-Id: I3a07ac5157db9c64bca1016ab137419968c16fe6
general clean up

Change-Id: If3ff32a3974368d9ea2756d3d9a22d4713e704fa
Merge branch 'cm/cm-10.1'