From 5156247998b357c16e8d634f2f938d218ea4cf12 Mon Sep 17 00:00:00 2001 From: Tzafrir Cohen Date: Sun, 29 Jun 2008 16:54:13 +0000 Subject: * 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 --- Makefile | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'Makefile') 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) -- cgit v1.2.3