I would like to know the last time my Raspberry Pi Zero (1.7W) was connected to the internet.
OS: Raspberry Pi OS Lite, Kernel version: 5.15 & Debian version: 11 (bullseye)
There was a similar question asked using an Ubuntu machine. However, it has additional capabilities, i.e., a Network Manager. Seems like a solution could be analyzing the
/var/log/syslog output but, I am unsure what to sift through using
My goal is to see that if the last time there has been a network connection, and it has has been greater than 18 hours run a script.