mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-09-14 21:53:43 +08:00
Retain hotspot/tether: start later in manager (#110)
This commit is contained in:
@@ -167,9 +167,6 @@ def manager_init() -> None:
|
||||
if os.path.isfile(f'{CRASHES_DIR}/error.txt'):
|
||||
os.remove(f'{CRASHES_DIR}/error.txt')
|
||||
|
||||
if params.get_bool("HotspotOnBoot"):
|
||||
os.system('nmcli con up Hotspot')
|
||||
|
||||
|
||||
def manager_prepare() -> None:
|
||||
for p in managed_processes.values():
|
||||
@@ -286,6 +283,9 @@ def main() -> None:
|
||||
cloudlog.warning("shutdown")
|
||||
HARDWARE.shutdown()
|
||||
|
||||
if params.get_bool("HotspotOnBoot"):
|
||||
os.system('nmcli con up Hotspot')
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unblock_stdout()
|
||||
|
||||
Reference in New Issue
Block a user