summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/netctl-auto3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/netctl-auto b/src/netctl-auto
index 4f53f75..507b1fc 100755
--- a/src/netctl-auto
+++ b/src/netctl-auto
@@ -253,6 +253,9 @@ case $# in
switch-to)
switch_to "$2";;
start|stop)
+ if [[ -t 0 ]]; then
+ exit_error "Use 'systemctl $1 netctl-auto@$2' to $1 netctl-auto."
+ fi
ensure_root "$(basename "$0")"
"$1" "$2";;
*)