Increase uptime threshold for USB canary

This commit is contained in:
Bob Mottram 2018-05-13 09:47:31 +01:00
parent fe6f27c9d4
commit 551ff38736
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@
PROJECT_NAME=freedombone
UPTIME=$(awk -F '.' '{print $1}' < "/proc/uptime")
if [ "$UPTIME" -gt 120 ]; then
if [ "$UPTIME" -gt 240 ]; then
ADMIN_USER=$(grep 'Admin user' /root/${PROJECT_NAME}-completed.txt | awk -F ':' '{print $2}')
MY_EMAIL_ADDRESS=${ADMIN_USER}@$(cat /etc/hostname)
echo "USB device connected on ${DEVPATH}" | mail -s "${PROJECT_NAME} USB canary" "${MY_EMAIL_ADDRESS}"