commit efbe1362c62f9d3c2cdec71c345c4cf801876709
parent 94cc93772f938000d12e65e984441d5bbbc650bc
Author: mayfrost <mayfrost@cock.li>
Date: Thu, 8 Mar 2018 06:22:22 +0000
Update WIFI.md
Diffstat:
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/WIFI.md b/WIFI.md
@@ -1,16 +1,17 @@
# WiFi
Use WiFi without a separate network manager with this simple guide. Needs "_dhcpcd_" (or "_dhcpclient_"), "_wpa\_supplicant_", "_iproute2_" and wifi firmware (like "_iwlwifi_").
+The "_\<DEVICE_NAME>_" can be either "_wlp3s0_" or "_wlan0_". Change accordingly the following commands to suit your needs.
* Create the configuration file (as "_root_", not "_sudo_"):
`wpa_passphrase <NETWORK_NAME> <PASSWORD> > /etc/wpa_supplicant.conf`
* Delete non hashed password from /etc/wpa_supplicant.conf
* Each time you need to connect type the following command (as "_root_" or with "_sudo_"):
-`ip link set wlan0 down`
-`ip link set wlan0 up`
-`wpa_supplicant -B -iwlan0 -c /etc/wpa_supplicant.conf -Dwext`
-`dhcpcd wlan0`
+`ip link set <DEVICE_NAME> down`
+`ip link set <DEVICE_NAME> up`
+`wpa_supplicant -B -i<DEVICE_NAME> -c /etc/wpa_supplicant.conf -Dwext`
+`dhcpcd <DEVICE_NAME>`
You can save the last step in a script.