Skip to content

Commit

Permalink
debug dietpi wifi firstboot
Browse files Browse the repository at this point in the history
  • Loading branch information
wiedehopf committed Dec 21, 2024
1 parent 08429f0 commit e152479
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import subprocess
import sys
import threading
import traceback
import tempfile
import time
from flask import (
Expand Down Expand Up @@ -91,7 +92,7 @@ def wpa_cli_reconfigure(self):
continue

output += line
# print(line, end="")
print_err(line)
if "Interactive mode" in line:
proc.stdin.write("reconfigure\n")
proc.stdin.flush()
Expand All @@ -101,7 +102,7 @@ def wpa_cli_reconfigure(self):
connected = True
break
except:
pass
print_err(traceback.format_exc())
finally:
if proc:
proc.terminate()
Expand Down

0 comments on commit e152479

Please sign in to comment.