From 9a1ca23b6089eff590056fca12ea8ca07c80014a Mon Sep 17 00:00:00 2001 From: Leo von Klenze Date: Sun, 12 Oct 2014 10:45:06 +0200 Subject: 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... --- src/wifi-menu | 3 +-- 1 file changed, 1 insertion(+), 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 -- cgit v1.2.3-24-g4f1b