From 551ff387366f8d9ba162bbd86f2809e4c4944b1f Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 13 May 2018 09:47:31 +0100 Subject: [PATCH] Increase uptime threshold for USB canary --- src/freedombone-usb-canary | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/freedombone-usb-canary b/src/freedombone-usb-canary index f57bfaaa..6fd7f382 100755 --- a/src/freedombone-usb-canary +++ b/src/freedombone-usb-canary @@ -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}"