Bladeren bron

Increase uptime threshold for USB canary

Bob Mottram 6 jaren geleden
bovenliggende
commit
551ff38736
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  1. 1
    1
      src/freedombone-usb-canary

+ 1
- 1
src/freedombone-usb-canary Bestand weergeven

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