MCPcopy Create free account
hub / github.com/archlinux/archinstall / _check_online

Function _check_online

archinstall/main.py:38–48  ·  view source on GitHub ↗
(wifi_handler: WifiHandler | None = None)

Source from the content-addressed store, hash-verified

36
37
38def _check_online(wifi_handler: WifiHandler | None = None) -> bool:
39 try:
40 ping('1.1.1.1')
41 except OSError as ex:
42 if 'Network is unreachable' in str(ex):
43 if wifi_handler is not None:
44 result: bool = tui.run(wifi_handler)
45 if not result:
46 return False
47
48 return True
49
50
51def _fetch_arch_db() -> bool:

Callers 1

runFunction · 0.85

Calls 2

pingFunction · 0.90
runMethod · 0.45

Tested by

no test coverage detected