Scripting wpa_supplicant for multi-profile selection
Hi all. So, first of all my apologies for the noob question. I've searched around for a way to make use of bash arrays to perform what I need, but I'm struggling to understand which method would be better.
So, I'm looking to get a bit more comfortable with scripting, hoping to use wpa_supplicant as an ideal usecase. I know it can handle multiple wpa passphrase profiles by itself just fine, but figured I'd take this opprutunity to make my own multi-profile script.
The aim is to have a basic script which contains references to the various wpa passphrase configs I have setup, and have it provide a list of available profiles to shell, which I can select as required.
What I have in mind, is to declare a base variable for the wpa_suppplicant and arguments, then havethe script choose from an array which wpa passphrase to use. Below are the full strings I'm aiming to use, but I imagine this can be simplified:
I'd imagine it would make more sense to declare the wpa_supplicant paramater with arguments, and have a means of choosing from the available wpa passphrase configs. Could I ask one of you wonderful peeps if you have some ideas on how to achieve this? Cheers!
Good day!
I am trying to learn how to use the "sed" editor, to perform multiple edits on multiple files in multiple directories.
I have one script that tries to call up each file and process it according to the edits listed in a second script. I am using a small input text to test these, at... (12 Replies)
hi , i added ls -F to .profile. and i need to do ./.profile for the effect to take effect BUT i didnt and YET the next day when i came to work and log in, the changes took effect. i am on aix.
please explain..
thanks (4 Replies)
Dear Experts
Why we always hear that unix operating system is Multi User and Multi task. What does these two means. I have looked at some books and documents but couldn't find aclear explenation. Can we say Windows operating system is also multi user and multi task??
Thanks for your help in... (6 Replies)
hi..
I want to customize a user in unix which could have only ftp access and NO TELNET ACCESS! .....
As being a newbie to unix to my understanding the user .profile has to be edited but if someone can explain how to edit it so that i can block telnet access for that user.....Is /etc/profile has... (5 Replies)
Hello
I really wonder what's trap in etc/profile and in each user .profile.
I try to google for it but I think I have no luck. Mostly hit is SNMP traps which I think it is not the same thing.
I want to know ...
1. What's a "trap 2 3" means and are there any other value I can set... (4 Replies)
Hi,
I have a problem where I need to make this input:
nameRow1a,text1a,text2a,floatValue1a,FloatValue2a,...,floatValue140a
nameRow1b,text1b,text2b,floatValue1b,FloatValue2b,...,floatValue140b
look like this output:
nameRow1a,text1b,text2a,(floatValue1a - floatValue1b),(floatValue2a -... (4 Replies)
I am trying to write a large X app. I have successfully modified my xorg.conf to setup 4 monitors on an NVIDIA Quatro5200. I am trying to modify a simple hello world application to open a window on three of the four monitors. depending on the changes to loop the window creation section and event... (2 Replies)
I just got FreeBSD up and running with an XFCE desktop on an old Gateway laptop. It works great, except the wireless setup is scaring me. I can connect to my home WiFi fine most of the time, but I'm concerned about other WiFi that I will need to connect to away from home.
I understand that I can... (1 Reply)
I'm confused with what to use (awk or grep) in this case as i need to select 2 corresponding patterns. "SName" & "ESys" in a appln config file which looks like this;
SName=abc123
ESys=xyz456
Host=xxx
Port=yyy
I used awk and didn't get any output for multi-pattern search.
$ awk -F"="... (7 Replies)
WPA_SUPPLICANT(8) BSD System Manager's Manual WPA_SUPPLICANT(8)NAME
wpa_supplicant -- WPA/802.11i Supplicant for wireless network devices
SYNOPSIS
wpa_supplicant [-BdehLqvw] [-f debug-file] -i ifname -c config-file [-N -i ifname -c config-file ...]
DESCRIPTION
The wpa_supplicant utility is an implementation of the WPA Supplicant component, i.e., the part that runs in the client stations. It imple-
ments WPA key negotiation with a WPA Authenticator and EAP authentication with an Authentication Server. In addition, wpa_supplicant con-
trols the roaming and IEEE 802.11 authentication/association support and can be used to configure static WEP keys based on identified net-
works.
The wpa_supplicant utility is designed to be a ``daemon'' program that runs in the background and acts as the backend component controlling
the wireless connection. It supports separate frontend programs such as the text-based wpa_cli(8) program.
The following arguments must be specified on the command line:
-i ifname
Use the specified wireless interface.
-c config-file
Use the settings in the specified configuration file when managing the wireless interface. See wpa_supplicant.conf(5) for a descrip-
tion of the configuration file syntax and contents.
Changes to the configuration file can be reloaded by sending a SIGHUP signal to the wpa_supplicant process or with the wpa_cli(8)
utility, using ``wpa_cli reconfigure''.
OPTIONS
The following options are available:
-B Detach from the controlling terminal and run as a daemon process in the background.
-d Enable debugging messages. If this option is supplied twice, more verbose messages are displayed. Messages are sent to stdout by
default, even when daemonised. This can be changed with the -f flag.
-e Use an external IEEE 802.1X Supplicant program and disable the internal Supplicant. This option is not normally used.
-f Specifies a file to send debug messages to when enabled with the -d flag.
-h Show help text.
-K Include key information in debugging output.
-L Display the license for this program on the terminal and exit.
-N -i ifname -c config-file ...
Specify an additional interface and configuration file. If multiple interfaces are specified then wpa_supplicant will manage them
all with a single process.
-q Decrease debugging verbosity (i.e., counteract the use of the -d flag).
-v Display version information on the terminal and exit.
-w If the specified interface is not present, wait for it to be added; e.g. a cardbus device to be inserted.
SEE ALSO ath(4), ipw(4), iwi(4), ral(4), wi(4), wpa_supplicant.conf(5), ifconfig(8), wpa_cli(8)HISTORY
The wpa_supplicant utility first appeared in NetBSD 4.0.
AUTHORS
The wpa_supplicant utility was written by Jouni Malinen <jkmaline@cc.hut.fi>. This manual page is derived from the README file included in
the wpa_supplicant distribution.
BSD January 22, 2010 BSD