summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouke Witteveen <j.witteveen@gmail.com>2013-01-25 12:38:30 +0100
committerJouke Witteveen <j.witteveen@gmail.com>2013-01-25 12:38:30 +0100
commita3d559ac4e87b141de8295a8ea62d4eb747e382c (patch)
tree8a624276de98b9d58df37dc0c6c3db90ce6c6d83
parent61e97343d0169839b89dccd762f3c492e74cee8a (diff)
parent45f9cb55fffe278f3ca10fbc3deef478979ec6db (diff)
downloadnetctl-a3d559ac4e87b141de8295a8ea62d4eb747e382c.tar.gz
netctl-a3d559ac4e87b141de8295a8ea62d4eb747e382c.tar.xz
Merge pull request #7 from KaiSforza/wifi-menu-switch-to
[wifi-menu] Do not fail if already connected
-rwxr-xr-xsrc/wifi-menu2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wifi-menu b/src/wifi-menu
index 2b2e700..57275c4 100755
--- a/src/wifi-menu
+++ b/src/wifi-menu
@@ -146,7 +146,7 @@ connect_to_ssid()
SPAWNED_PROFILE=1
fi
clear
- if ! netctl restart "$PROFILE"; then
+ if ! netctl switch-to "$PROFILE"; then
if (( SPAWNED_PROFILE )); then
msg=" CONNECTING FAILED