2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-02-08 05:15:10 +00:00
pahenning 44b41f90d6 DoorPi.pm: zur Anbindung des DoorPi-Projektes
git-svn-id: https://svn.fhem.de/fhem/trunk@11312 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2016-04-25 18:52:01 +00:00

20 lines
295 B
Bash
Executable File

# ! /usr/bin/sh
action=$1
get_modify_time()
{
stat $1 | grep -Po "Modify: \K[0-9- :]*"
}
if [ "$action" == "purge" ]; then
reference=/var/run/doorpi.pid
find records/ -type f ! -newer $reference -delete
elif [ "$action" == "clear" ]; then
echo "clear"
else
echo "so what"
fi