fix switchgfx.sh