mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-08 05:15:10 +00:00
44b41f90d6
git-svn-id: https://svn.fhem.de/fhem/trunk@11312 2b470e98-0d58-463d-a4d8-8e2adae1ed80
20 lines
295 B
Bash
Executable File
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
|
|
|