optimize 8916 gpio.sh