bitwarden

This commit is contained in:
jaydee
2024-11-29 12:09:07 +01:00
parent e1bb70146d
commit 0e2d57eca6

View File

@@ -97,13 +97,13 @@ hm = socket.gethostbyaddr("omv.home.lan")
hostdown = True hostdown = True
while hostdown: while hostdown:
HOST_UP = os.system(f"ping -c 1 -w 2 omv.home.lan") == 0 #HOST_UP = os.system(f"ping -c 1 -w 2 omv.home.lan") == 0
cmnd = "ping -c 1 -w 2 omv.home.lan" cmnd = "ping -c 1 -w 2 omv.home.lan"
status, output = subprocess.getstatusoutput(cmnd) status, output = subprocess.getstatusoutput(cmnd)
print(status) print(status)
#print(output) #print(output)
if not HOST_UP: if output != 0:
send_magic_packet('88:c9:b3:b5:23:d8') send_magic_packet('88:c9:b3:b5:23:d8')
print("Backup host down, waiting") print("Backup host down, waiting")
time.sleep(5) time.sleep(5)