summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xsrc/wifi-menu6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/wifi-menu b/src/wifi-menu
index 5a9184e..a30d15c 100755
--- a/src/wifi-menu
+++ b/src/wifi-menu
@@ -147,11 +147,11 @@ connect_to_ssid()
fi
clear
if systemctl is-active --quiet "netctl-auto@$INTERFACE.service"; then
+ report_notice "Interface '$INTERFACE' is controlled by netctl-auto"
if (( NEW_PROFILE )); then
- systemctl restart netctl-auto@$INTERFACE.service
- echo 'Profile created. Restarting netctl-auto service.'
+ do_debug systemctl restart "netctl-auto@$INTERFACE.service"
else
- echo 'Profile already created.'
+ report_error "A profile already exists for SSID '$1'"
fi
elif ! netctl switch-to "$PROFILE"; then
if (( NEW_PROFILE )); then