From e14211b96b1fca6330120dee6144409b391e5036 Mon Sep 17 00:00:00 2001 From: Rich Date: Sat, 10 Jul 2021 13:04:21 +0100 Subject: [PATCH] . --- app/routes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/routes.py b/app/routes.py index 625455e..1061fac 100644 --- a/app/routes.py +++ b/app/routes.py @@ -124,7 +124,7 @@ def wpa(ssid): else: form = WPAForm() if form.validate_on_submit(): - wpa = """country=GB # Your 2-digit country code + wpafile = """country=GB # Your 2-digit country code ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev network={{ ssid="{}" @@ -142,7 +142,7 @@ network={{ ).stdout.decode("utf-8") with open("/etc/wpa_supplicant/wpa_supplicant.conf", "wt") as f: - f.write(wpa) + f.write(wpafile) try: output = subprocess.run(