diff options
author | Leo von Klenze <leo.vonklenze@tngtech.com> | 2014-10-12 10:45:06 +0200 |
---|---|---|
committer | Jouke Witteveen <j.witteveen@gmail.com> | 2015-01-12 15:43:55 +0100 |
commit | 9a1ca23b6089eff590056fca12ea8ca07c80014a (patch) | |
tree | a5dcc26497002be5815491d959a9c65fd77d71a5 /src/wifi-menu | |
parent | 86a44623953d8148fdc4f1dde0d3e041c8f2f54e (diff) | |
download | netctl-9a1ca23b6089eff590056fca12ea8ca07c80014a.tar.gz netctl-9a1ca23b6089eff590056fca12ea8ca07c80014a.tar.xz |
Use netctl-auto for profile switching
If an interface is managed via netctl-auto use netctl-auto
to switch to the profile instead of failing
[Jouke]: I have removed the notifications. Progress indicators should
be provided by systemctl but that still is not possible...
Diffstat (limited to 'src/wifi-menu')
-rwxr-xr-x | src/wifi-menu | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/wifi-menu b/src/wifi-menu index afb5a9e..7d59460 100755 --- a/src/wifi-menu +++ b/src/wifi-menu @@ -182,9 +182,8 @@ connect_to_ssid() report_notice "Interface '$INTERFACE' is controlled by netctl-auto" if (( NEW_PROFILE )); then do_debug systemctl restart "netctl-auto@$INTERFACE.service" - else - report_error "A profile already exists for SSID '$1'" fi + do_debug netctl-auto switch-to $PROFILE elif ! netctl switch-to "$PROFILE"; then if (( NEW_PROFILE )); then msg=" CONNECTING FAILED |