Skip to content

Commit 7dbe844

Browse files
committed
Exit if wifi check fails on startup
The wifi interfaces may not be up yet after reboot. Exit, and let systemd restart the service a little bit later.
1 parent d0a51f4 commit 7dbe844

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

comitup/comitup.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,10 +136,12 @@ def main():
136136
else:
137137
sys.exit(0)
138138
else:
139-
wificheck.run_checks(
139+
if wificheck.run_checks(
140+
logit=True,
140141
verbose=False,
141142
primary_dev=conf.primary_wifi_device,
142-
)
143+
):
144+
sys.exit(1)
143145

144146
check_environment(log)
145147

0 commit comments

Comments
 (0)