summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJouke Witteveen <j.witteveen@gmail.com>2013-02-05 18:06:27 +0100
committerJouke Witteveen <j.witteveen@gmail.com>2013-02-05 18:06:27 +0100
commit763f34bf0cc263ba877b1933944f700fc29f3139 (patch)
tree3be17d27197b803e93df96ab64f7145327d74b21 /src
parent5d8d9e7ece307ae68c938d580900ec0424cdafbf (diff)
downloadnetctl-763f34bf0cc263ba877b1933944f700fc29f3139.tar.gz
netctl-763f34bf0cc263ba877b1933944f700fc29f3139.tar.xz
Disallow direct systemctl usage for profiles
This is meant to reduce confusion where netctl should be used instead of systemctl.
Diffstat (limited to 'src')
-rwxr-xr-xsrc/netctl3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/netctl b/src/netctl
index eec8501..7cf0b59 100755
--- a/src/netctl
+++ b/src/netctl
@@ -96,8 +96,9 @@ unit_enable() {
if [[ -n $After ]]; then
printf 'After="netctl@%s.service"\n' "${After[@]//\"/\\\"}" >> "$unit"
fi
+ echo "ln -s '$unit' '${unit/system\//system/multi-user.target.wants/}'"
+ ln -s "$unit" "${unit/system\//system/multi-user.target.wants/}"
systemctl daemon-reload
- systemctl reenable "netctl@$1.service"
}
unit_disable() {