Update sh_setupranks