Increase uptime threshold for USB canary
This commit is contained in:
parent
fe6f27c9d4
commit
551ff38736
|
@ -29,7 +29,7 @@
|
||||||
PROJECT_NAME=freedombone
|
PROJECT_NAME=freedombone
|
||||||
|
|
||||||
UPTIME=$(awk -F '.' '{print $1}' < "/proc/uptime")
|
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}')
|
ADMIN_USER=$(grep 'Admin user' /root/${PROJECT_NAME}-completed.txt | awk -F ':' '{print $2}')
|
||||||
MY_EMAIL_ADDRESS=${ADMIN_USER}@$(cat /etc/hostname)
|
MY_EMAIL_ADDRESS=${ADMIN_USER}@$(cat /etc/hostname)
|
||||||
echo "USB device connected on ${DEVPATH}" | mail -s "${PROJECT_NAME} USB canary" "${MY_EMAIL_ADDRESS}"
|
echo "USB device connected on ${DEVPATH}" | mail -s "${PROJECT_NAME} USB canary" "${MY_EMAIL_ADDRESS}"
|
||||||
|
|
Loading…
Reference in New Issue