STATE="on" if [ $STATE = "on" ]; then echo "on" else echo "off" fi