Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ffbs
ffbs-ci
Commits
d7a561e3
Commit
d7a561e3
authored
Dec 08, 2021
by
chrissi^
Browse files
tl841: Handle existing SSH-keys during setup
parent
4ae3b82e
Changes
1
Hide whitespace changes
Inline
Side-by-side
parker/tl841.py
View file @
d7a561e3
...
...
@@ -157,7 +157,10 @@ class SmallUBootStrategy(Strategy):
pubkey
=
fh
.
read
()
r
=
requests
.
get
(
'http://192.168.1.1/cgi-bin/config/admin/remote'
)
match
=
re
.
search
(
'<textarea[^>]+>(.+)</textarea>'
,
r
.
text
,
re
.
DOTALL
)
keys
=
match
[
1
]
+
"
\n
"
+
pubkey
if
match
:
keys
=
match
[
1
]
+
"
\n
"
+
pubkey
else
:
keys
=
pubkey
payload
=
{
"token"
:
""
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment