diff --git a/app/routes2.py b/app/routes2.py index 70dc7b3..879d829 100644 --- a/app/routes2.py +++ b/app/routes2.py @@ -62,7 +62,7 @@ def connectwpa(ssid): return render_template("wpa.html", title="WPA Password", form=form) -@app.route("/disconnect/", methods=["GET", "POST"]) +@app.route("/disconnect/", methods=["GET", "POST"]) @login_required def disconnect(ssid): if disconnect_network(): diff --git a/interfaces b/interfaces index 3149d4d..a066930 100644 --- a/interfaces +++ b/interfaces @@ -14,10 +14,10 @@ iface eth0 inet static address 192.168.0.200 netmask 255.255.255.0 -allow-hotplug wlan1 -iface wlan1 inet manual +allow-hotplug wlan0 +iface wlan0 inet dhcp wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf -allow-hotplug wlan0 -iface wlan0 inet manual +allow-hotplug wlan1 +iface wlan1 inet dhcp nohook wpa_supplicant