diff options
Diffstat (limited to 'rules/initmethod-systemd.make')
-rw-r--r-- | rules/initmethod-systemd.make | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/rules/initmethod-systemd.make b/rules/initmethod-systemd.make index a1354d51d..4a0667fce 100644 --- a/rules/initmethod-systemd.make +++ b/rules/initmethod-systemd.make @@ -30,6 +30,29 @@ $(STATEDIR)/initmethod-systemd.targetinstall: @$(call install_alternative, initmethod-systemd, 0, 0, 0755, /lib/init/initmethod-bbinit-functions.sh) +ifdef PTXCONF_INITMETHOD_SYSTEMD_IFUPDOWN + @$(call install_alternative, initmethod-systemd, 0, 0, 0755, \ + /lib/systemd/ifupdown-prepare) + @$(call install_alternative, initmethod-systemd, 0, 0, 0644, \ + /lib/systemd/system/ifupdown-prepare.service) + @$(call install_link, initmethod-systemd, ../ifupdown-prepare.service, \ + /lib/systemd/system/ifupdown.service.wants/ifupdown-prepare.service) + + @$(call install_alternative, initmethod-systemd, 0, 0, 0644, \ + /lib/systemd/system/ifupdown.service) + @$(call install_link, initmethod-systemd, ../ifupdown.service, \ + /lib/systemd/system/network.target.wants/ifupdown.service) + + @$(call install_link, initmethod-systemd, ../network.target, \ + /lib/systemd/system/multi-user.target.wants/network.target) + + @$(call install_alternative, initmethod-systemd, 0, 0, 0644, /etc/network/interfaces) + @$(call install_copy, initmethod-systemd, 0, 0, 0755, /etc/network/if-down.d) + @$(call install_copy, initmethod-systemd, 0, 0, 0755, /etc/network/if-up.d) + @$(call install_copy, initmethod-systemd, 0, 0, 0755, /etc/network/if-post-down.d) + @$(call install_copy, initmethod-systemd, 0, 0, 0755, /etc/network/if-pre-up.d) +endif + @$(call install_finish,initmethod-systemd) @$(call touch) |