#!/bin/sh
#DEBHELPER#
IMGDIR=$(grep dflt_image_location /etc/weatherstation/chart.conf | cut -f2)
FILES=$(ls -Al $IMGDIR | wc -l)
if [ $FILES -gt 1 ]; then
echo -n "loesche $[$FILES - 1] generierte Bilder ... "
/bin/rm -f $IMGDIR/*
echo "done"
fi