vitrinekast 8 months ago
parent 613b44e7e4
commit 0c225c2c3e

@ -60,6 +60,8 @@ if not time_ago_arg:
device_info = run_command(['awk', '-F:', '{ print $2}'], based=device_info_grab.stdout) 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_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) ip_address = run_command(['awk', '$1 == "inet" {gsub(/\/.*$/, "", $2); print $2}' ], based=ip_address_show.stdout)
else:
since_last_boot = False

Loading…
Cancel
Save