Browse Source

Increase uptime threshold for USB canary

Bob Mottram 6 years ago
parent
commit
551ff38736
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/freedombone-usb-canary

+ 1
- 1
src/freedombone-usb-canary View File

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