summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo von Klenze <leo.vonklenze@tngtech.com>2014-10-12 10:45:06 +0200
committerJouke Witteveen <j.witteveen@gmail.com>2015-01-12 15:43:55 +0100
commit9a1ca23b6089eff590056fca12ea8ca07c80014a (patch)
treea5dcc26497002be5815491d959a9c65fd77d71a5
parent86a44623953d8148fdc4f1dde0d3e041c8f2f54e (diff)
downloadnetctl-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...
-rwxr-xr-xsrc/wifi-menu3
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