diff options
-rw-r--r-- | services/netctl@.service | 3 | ||||
-rwxr-xr-x | src/netctl | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/services/netctl@.service b/services/netctl@.service index 9bd99b6..9468951 100644 --- a/services/netctl@.service +++ b/services/netctl@.service @@ -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() { |