Commit 763f34bf authored by Jouke Witteveen's avatar Jouke Witteveen
Browse files

Disallow direct systemctl usage for profiles

This is meant to reduce confusion where netctl should be used instead of
systemctl.
parent 5d8d9e7e
......@@ -10,6 +10,3 @@ RemainAfterExit=yes
ExecStart=/usr/lib/network/network start %i
ExecStop=/usr/lib/network/network stop %i
KillMode=none
[Install]
WantedBy=multi-user.target
......@@ -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() {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment