diff options
author | Frederic Crozat <fcrozat@suse.com> | 2011-07-07 14:56:30 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2011-07-12 00:15:35 +0200 |
commit | a268a6a38febcb9182cac92aaef8803f2d20d6eb (patch) | |
tree | da8b93087c835cdf14581e96ed3a99bdcad9b123 /Makefile.am | |
parent | 89d471d55eadce53c5ad97e50dfaa0063c227d7e (diff) |
units: add units for boot.local/halt.local on SUSE distributions.
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am index ca2c43773a..3ca0b8030c 100644 --- a/Makefile.am +++ b/Makefile.am @@ -438,6 +438,12 @@ dist_systemunit_DATA += \ units/frugalware/display-manager.service endif +if TARGET_SUSE +dist_systemunit_DATA += \ + units/suse/rc-local.service \ + units/suse/halt-local.service +endif + if HAVE_PLYMOUTH dist_systemunit_DATA += \ units/plymouth-start.service \ @@ -1704,6 +1710,19 @@ if TARGET_DEBIAN_OR_UBUNTU $(LN_S) multi-user.target runlevel5.target ) endif +if TARGET_SUSE + $(MKDIR_P) -m 0755 $(DESTDIR)$(systemunitdir)/final.target.wants + ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \ + rm -f rc-local.service && \ + $(LN_S) $(systemunitdir)/rc-local.service rc-local.service ) + ( cd $(DESTDIR)$(systemunitdir) && \ + rm -f local.service && \ + $(LN_S) rc-local.service local.service ) + ( cd $(DESTDIR)$(systemunitdir)/final.target.wants && \ + rm -f halt-local.service && \ + $(LN_S) $(systemunitdir)/halt-local.service halt-local.service ) +endif + if HAVE_SYSV_COMPAT ( cd $(DESTDIR)$(systemunitdir)/local-fs.target.wants && \ rm -f var-lock.mount && \ |