diff --git a/hc.sh b/hc.sh new file mode 100644 index 0000000..86b69b0 --- /dev/null +++ b/hc.sh @@ -0,0 +1,8 @@ +#!/bin/sh +DELTA=600 +SFILE=/tmp/hc.timestamp +if [ -f $SFILE ] && [ $(expr $(date +%s) - $(stat -c %Y $SFILE)) -lt $DELTA ]; then + exit 0 +else + exit 1 +fi