#!/bin/bash while true; do wert=$(gpio read 0) if [ $wert = "1" ]; then gpio write 1 1 fi sleep 1s done