#!/bin/bash

SIGDIR=/usr/share/signatures
test -d ${SIGDIR} || exit 0
ANZAHL=`ls -1 ${SIGDIR} | wc -l`
test -e ~/.signature || echo "COUNTER=1" > ~/.signature
. ~/.signature
test "${COUNTER}" -gt "${ANZAHL}" && COUNTER=1
cat ${SIGDIR}/${COUNTER}
echo "COUNTER=$((COUNTER+1))" > ~/.signature
exit 0
