Bläddra i källkod

Increase uptime threshold for USB canary

Bob Mottram 6 år sedan
förälder
incheckning
551ff38736
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1
    1
      src/freedombone-usb-canary

+ 1
- 1
src/freedombone-usb-canary Visa fil

@@ -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}"