Skip to content

Commit cda0cda

Browse files
committed
Fix network connectivity availability for startup script
1 parent 875ae05 commit cda0cda

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

startup/agx-startup.service

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
[Unit]
22
Description=Mika's startup script
3+
Wants=network-online.target
4+
After=network-online.target
35
46
[Service]
57
ExecStart=/usr/local/bin/agx/agx_startup.py

startup/agx_startup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -759,6 +759,7 @@ def mount_cifs(hostname: str = "192.168.20.20", mount_dir: str = "/mnt/agx-file"
759759
print(f"Mounting {folder}")
760760
subprocess.run(["mount", folder])
761761

762+
762763
def device_power_control(device: str) -> bool:
763764
if not os.path.exists(device):
764765
print("Device", device, "not found")

0 commit comments

Comments
 (0)