diff options
Diffstat (limited to 'src')
-rw-r--r--[-rwxr-xr-x] | src/netctl.in (renamed from src/netctl) | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/netctl b/src/netctl.in index 4441838..2d04d28 100755..100644 --- a/src/netctl +++ b/src/netctl.in @@ -100,13 +100,13 @@ switch_to() { } unit_enable() { - local unit="/etc/systemd/system/netctl@$(sd_escape "$1").service" + local unit="@systemdsystemconfdir@/netctl@$(sd_escape "$1").service" if [[ -e $unit ]]; then report_error "A unit file for profile '$1' already exists" return 1 fi load_profile "$1" - echo ".include /usr/lib/systemd/system/netctl@.service" > "$unit" + echo ".include @systemdsystemunitdir@/netctl@.service" > "$unit" echo -e "\n[Unit]" >> "$unit" [[ -n $Description ]] && echo "Description=$Description" >> "$unit" if [[ -n ${BindsToInterfaces=$Interface} ]]; then @@ -126,7 +126,7 @@ unit_enable() { } unit_disable() { - local unit="/etc/systemd/system/netctl@$(sd_escape "$1").service" + local unit="@systemdsystemconfdir@/netctl@$(sd_escape "$1").service" if sd_call "is-enabled --quiet" "$1" &> /dev/null; then sd_call disable "$1" fi |