#!/bin/bash gpio mode $1 out let "out=`gpio read $1`" echo $out