summaryrefslogtreecommitdiff
path: root/common.sh
diff options
context:
space:
mode:
Diffstat (limited to 'common.sh')
-rw-r--r--common.sh14
1 files changed, 6 insertions, 8 deletions
diff --git a/common.sh b/common.sh
index de27a54..62af7fa 100644
--- a/common.sh
+++ b/common.sh
@@ -7,14 +7,12 @@ pkgname=$(basename "$BUILDFILE" .PKGBUILD)
netctl-enable() (
. "etc/netctl/$1"
unit=netctl@"$(systemd-escape -- "$1")".service
- install -Dm644 /dev/stdin etc/systemd/system/"${unit}" <<EOF
-.include /usr/lib/systemd/system/netctl@.service
-
-[Unit]
-Description=${Description}
-BindsTo=sys-subsystem-net-devices-${Interface}.device
-After=sys-subsystem-net-devices-${Interface}.device
-EOF
+ install -Dm644 /dev/stdin etc/systemd/system/"${unit}.d"/profile.conf <<-EOF
+ [Unit]
+ Description=${Description}
+ BindsTo=sys-subsystem-net-devices-${Interface}.device
+ After=sys-subsystem-net-devices-${Interface}.device
+ EOF
add-unit etc/systemd/system/multi-user.target.wants/"$unit"
)