-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merge nacli and netctl-auto #49
Conversation
This function can be used to unquote WPA supplicant config file strings returned from wpa_cli calls.
This adds a command line interface to the netctl-auto script to allow users more control over the automatic profile selection.
|
||
SEE ALSO | ||
-------- | ||
*netctl*(1), *netctl.profile*(5), *netctl.special*(7), *systemctl*(1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why reference systemctl(1)?
Excellent! Only a few remarks. Contributions such as this one make me happy. |
|
||
# List of enabled networks | ||
local enabled_networks=$(wpa_call $interface list_networks | tail -n+2 | \ | ||
cut -f 1,4 | fgrep -v '[DISABLED]' | cut -f 1 | tr "\n" ' ') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use grep -F
instead of fgrep
.
Sorry for the delay, I'm currently on vacation and don't have easy internet access. But thanks for your feedback, I will fix the patch as soon as possible. |
I've pushed three commits which should fix the mentioned issues. |
Awesome, thanks! |
As requested in gandro/netctl-auto-cli#1, this pull request contains a rewrite of the
netctl-auto
script, essentially adding a command line interface to control the automatic profile selection. The commands are the same as those ofnacli
.In addition to the new commands, I've also documented the
start
andstop
commands in the man page. As stated there, these commands are not supposed to be called by the user, but by systemd through thenetctl-auto@.service
unit. Nonetheless I've reworked some ofnacli
s code to work even ifnetctl-auto start
was invoked directly. Please let me know if should remove the commands from the documentation.