diff options
Diffstat (limited to 'common.sh')
-rw-r--r-- | common.sh | 14 |
1 files changed, 6 insertions, 8 deletions
@@ -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" ) |