blob: 6401a893b76d9c510fc277265f68dd8e9245a3bc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
diff --git a/Makefile.am b/Makefile.am
index c5d4b76..41b505f 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -6,36 +6,3 @@ EXTRA_DIST = pi-blaster.service
sbin_PROGRAMS = pi-blaster
pi_blaster_SOURCES = pi-blaster.c mailbox.c
-
-if !DEBIAN_PKG
-if HAVE_SYSTEMD
-systemdsystemunit_DATA = pi-blaster.service
-
-# Unless we are cross-compiling, start now.
-if !CROSS_COMPILING
-install-data-hook:
- systemctl enable pi-blaster
- systemctl start pi-blaster
-
-uninstall-hook:
- systemctl stop pi-blaster
- systemctl disable pi-blaster
-endif # !CROSS_COMPILING
-
-else
-init_ddir = $(sysconfdir)/init.d
-init_d_SCRIPTS = pi-blaster.boot.sh
-
-# Unless we are cross-compiling, start now.
-if !CROSS_COMPILING
-install-data-hook:
- update-rc.d pi-blaster.boot.sh defaults
- $(init_ddir)/pi-blaster.boot.sh start
-
-uninstall-hook:
- update-rc.d pi-blaster.boot.sh remove
- killall pi-blaster
-endif # !CROSS_COMPILING
-
-endif # !HAVE_SYSTEMD
-endif # !DEBIAN_PKG
|