Last active
February 20, 2023 15:36
-
-
Save sulincix/4fcc4ad6a1962d3e89a506cc1671f9c0 to your computer and use it in GitHub Desktop.
Pardus create hotspot
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
IFNAME="wlp3s0" | |
CON_NAME="Pardus-Wifi" | |
PASSWD="1234567891" | |
nmcli c add type wifi \ | |
ifname "${IFNAME}" \ | |
con-name ${CON_NAME} \ | |
autoconnect yes \ | |
ssid "${CON_NAME}" \ | |
802-11-wireless.mode ap \ | |
802-11-wireless.band bg \ | |
ipv4.method shared \ | |
wifi-sec.key-mgmt wpa-psk \ | |
wifi-sec.psk "${PASSWD}" | |
sed -i -e '/key-mgmt=/s,wpa-psk,sae,' /etc/NetworkManager/system-connections/"${CON_NAME}".nmconnection | |
nmcli con up "${CON_NAME}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment