summaryrefslogtreecommitdiffstats
path: root/src/wifi-menu
diff options
context:
space:
mode:
authorJouke Witteveen <j.witteveen@gmail.com>2013-05-15 21:21:25 +0200
committerJouke Witteveen <j.witteveen@gmail.com>2013-05-15 21:23:01 +0200
commit3ec2c1d04f8571ac5683f08518d959241a75e6a0 (patch)
tree9bf6aaa61a3b1862f1ce0138e65c83af5d193b1e /src/wifi-menu
parent7436cde4a3b074458b93d35ca2811675fccc45c8 (diff)
downloadnetctl-3ec2c1d04f8571ac5683f08518d959241a75e6a0.tar.gz
netctl-3ec2c1d04f8571ac5683f08518d959241a75e6a0.tar.xz
More consistent approach to output
Diffstat (limited to 'src/wifi-menu')
-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