Initial commit of tools/rbphdmid.sh