Quellcode durchsuchen

Return to using admin user for the usb canary

Bob Mottram vor 7 Jahren
Ursprung
Commit
d128c66ff8
1 geänderte Dateien mit 1 neuen und 2 gelöschten Zeilen
  1. 1
    2
      src/freedombone-usb-canary

+ 1
- 2
src/freedombone-usb-canary Datei anzeigen

@@ -5,8 +5,7 @@ PROJECT_NAME=freedombone
5 5
 UPTIME=$(cat /proc/uptime | awk -F '.' '{print $1}')
6 6
 if [ $UPTIME -gt 120 ]; then
7 7
     ADMIN_USER=$(cat /root/${PROJECT_NAME}-completed.txt | grep 'Admin user' | awk -F ':' '{print $2}')
8
-    #MY_EMAIL_ADDRESS=${ADMIN_USER}@$(cat /etc/hostname)
9
-    MY_EMAIL_ADDRESS=root@$(cat /etc/hostname)
8
+    MY_EMAIL_ADDRESS=${ADMIN_USER}@$(cat /etc/hostname)
10 9
     echo "USB device connected on ${DEVPATH}" | mail -s "${PROJECT_NAME} USB canary" ${MY_EMAIL_ADDRESS}
11 10
     echo "${ACTION}" > /tmp/usb-canary
12 11
     echo "${MY_EMAIL_ADDRESS}" >> /tmp/usb-canary