Skip to content

Commit 9737b0d

Browse files
authored
Retain hotspot/tether: start later in manager (commaai#110)
1 parent 9171aa6 commit 9737b0d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

selfdrive/manager/manager.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -167,9 +167,6 @@ def manager_init() -> None:
167167
if os.path.isfile(f'{CRASHES_DIR}/error.txt'):
168168
os.remove(f'{CRASHES_DIR}/error.txt')
169169

170-
if params.get_bool("HotspotOnBoot"):
171-
os.system('nmcli con up Hotspot')
172-
173170

174171
def manager_prepare() -> None:
175172
for p in managed_processes.values():
@@ -286,6 +283,9 @@ def main() -> None:
286283
cloudlog.warning("shutdown")
287284
HARDWARE.shutdown()
288285

286+
if params.get_bool("HotspotOnBoot"):
287+
os.system('nmcli con up Hotspot')
288+
289289

290290
if __name__ == "__main__":
291291
unblock_stdout()

0 commit comments

Comments
 (0)