Add script to setup Wifi Adapter as Access Point.
Currently hard coded to the interface of personal laptop.
This commit is contained in:
parent
1cc677c39f
commit
cde2e16091
7
code/make_ap.sh
Executable file
7
code/make_ap.sh
Executable file
@ -0,0 +1,7 @@
|
|||||||
|
#! /bin/env bash
|
||||||
|
nmcli con add type wifi ifname wlp44s0 mode ap con-name WIFI_AP_TEST ssid MY_AP_TEST &&
|
||||||
|
nmcli con modify WIFI_AP_TEST 802-11-wireless.band bg &&
|
||||||
|
nmcli con modify WIFI_AP_TEST 802-11-wireless.channel 1 &&
|
||||||
|
nmcli con modify WIFI_AP_TEST 802-11-wireless-security.key-mgmt wpa-psk &&
|
||||||
|
nmcli con modify WIFI_AP_TEST 802-11-wireless-security.psk 11223344 &&
|
||||||
|
nmcli con modify WIFI_AP_TEST ipv4.method shared && nmcli con up WIFI_AP_TEST
|
||||||
Loading…
x
Reference in New Issue
Block a user