moved from mshinall/scripts/bash/atrix_4g