summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTzafrir Cohen <tzafrir.cohen@xorcom.com>2008-06-29 16:54:13 +0000
committerTzafrir Cohen <tzafrir.cohen@xorcom.com>2008-06-29 16:54:13 +0000
commit5156247998b357c16e8d634f2f938d218ea4cf12 (patch)
tree547f567cb5403cb4a2b7a1ee64e410a4dc5b266a /Makefile
parentd371f84fa494d836193410835b5fdc645d50818d (diff)
* dahdi.init: cleanups.
* init.conf: example configuration for the init script. * dahdi.rules: udev rules (still not installed). * Makefile: simplify install of RCCONF . git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@4483 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 3 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index c4e1c1c..532f498 100644
--- a/Makefile
+++ b/Makefile
@@ -62,7 +62,7 @@ ifneq (,$(INITRD_DIR))
INIT_TARGET := $(DESTDIR)$(INITRD_DIR)/dahdi
COPY_INITD := install -D dahdi.init $(INIT_TARGET)
endif
-RCCONF_DIR := $(firstword $(wildcard /etc/sysconfig /etc/default))
+RCCONF_FILE = /etc/dahdi/init.conf
NETSCR_DIR := $(firstword $(wildcard /etc/sysconfig/network-scripts ))
ifneq (,$(NETSCR_DIR))
@@ -255,10 +255,8 @@ config:
ifneq (,$(COPY_INITD))
$(COPY_INITD)
endif
-ifneq (,$(RCCONF_DIR))
- ifeq (,$(wildcard $(DESTDIR)$(RCCONF_DIR)/dahdi))
- $(INSTALL) -D -m 644 dahdi.sysconfig $(DESTDIR)$(RCCONF_DIR)/dahdi
- endif
+ifeq (,$(wildcard $(DESTDIR)$(RCCONF_FILE))
+ $(INSTALL) -D -m 644 init.conf $(DESTDIR)$(RCCONF_FILE)
endif
ifneq (,$(COPY_NETSCR))
$(COPY_NETSCR)