mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-08-21 16:23:50 +08:00
dragonpilot 2022-08-11T09:38:43 for EON/C2
version: dragonpilot v0.8.16 beta for EON/C2 date: 2022-08-11T09:38:43 dp-dev(priv2) master commit: c6cd233f23f60e7a6055d42850bc593c0e69082e
This commit is contained in:
Executable
+18
@@ -0,0 +1,18 @@
|
||||
#!/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")
|
||||
Reference in New Issue
Block a user