dragonpilot mod for 0.8.10-3

This commit is contained in:
Rick Lan
2021-12-13 13:16:01 +08:00
parent 93e8dbb8b5
commit 73ce7bbfca
367 changed files with 49146 additions and 9278 deletions
+23
View File
@@ -0,0 +1,23 @@
#!/usr/bin/env python3
import os
if __name__ == "__main__":
install_key = False
if os.path.isfile("/EON"):
os.system("setprop persist.neos.ssh 1")
os.system("echo -n 1 > /data/params/d/SshEnabled")
if not os.path.isfile("/data/params/d/GithubSshKeys"):
install_key = True
else:
with open('/data/params/d/GithubSshKeys') as f:
if f.read().strip() == "":
install_key = True
if install_key:
os.system("echo -n openpilot > /data/params/d/GithubUsername")
os.system("cp /data/openpilot/scripts/ssh_key/setup_keys /data/params/d/GithubSshKeys")
elif os.path.isfile("/TICI"):
pass
else:
pass