From 0c225c2c3efcbd25ce6f68aa5dacbb7ff6c02944 Mon Sep 17 00:00:00 2001 From: vitrinekast Date: Tue, 26 Mar 2024 23:54:22 +0100 Subject: [PATCH] 1 --- script.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/script.py b/script.py index e5ada40..c2025d6 100644 --- a/script.py +++ b/script.py @@ -60,6 +60,8 @@ if not time_ago_arg: device_info = run_command(['awk', '-F:', '{ print $2}'], based=device_info_grab.stdout) ip_address_show = subprocess.run(["ip", "addr", "show", "end0"], check=True, capture_output=True) ip_address = run_command(['awk', '$1 == "inet" {gsub(/\/.*$/, "", $2); print $2}' ], based=ip_address_show.stdout) +else: + since_last_boot = False