fix updatepo.sh script

modify mainmenu to support updatepo.sh