From cde2e16091099cf79289eaa4b503c5a5b7384100 Mon Sep 17 00:00:00 2001 From: Sebastian Lenzlinger <74497638+sebaschi@users.noreply.github.com> Date: Wed, 13 Mar 2024 18:04:03 +0100 Subject: [PATCH] Add script to setup Wifi Adapter as Access Point. Currently hard coded to the interface of personal laptop. --- code/make_ap.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 code/make_ap.sh diff --git a/code/make_ap.sh b/code/make_ap.sh new file mode 100755 index 0000000..867923a --- /dev/null +++ b/code/make_ap.sh @@ -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