Commit d7a561e3 authored by chrissi^'s avatar chrissi^
Browse files

tl841: Handle existing SSH-keys during setup

parent 4ae3b82e
......@@ -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": "",
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment