#!/bin/bash PIN=25 i="0" echo "Reinigung..." while [ $i -lt 20 ] do gpio write $PIN 0 sleep 3 gpio write $PIN 1 sleep 15 i=$[$i+1] done echo "Fertig!"