diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2011-05-27 21:31:10 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2011-05-27 21:31:10 +0200 |
commit | 02bca259924b70cf5371f57b75f9224dc7e55636 (patch) | |
tree | 306ef6572546481788e29e36834ce7774c57fc7c /rules/initmethod-systemd.make | |
parent | 1c808eeee8177044b5c4468c0b5c4532cc2133f0 (diff) | |
download | ptxdist-02bca259924b70cf5371f57b75f9224dc7e55636.tar.gz ptxdist-02bca259924b70cf5371f57b75f9224dc7e55636.tar.xz |
initmethod-systemd: add service for ifup/ifdown networking
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
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) |