From 1fccc2031412d1025deda5f44c8b0a42c045f929 Mon Sep 17 00:00:00 2001 From: Peter Korsgaard Date: Wed, 23 Nov 2011 23:28:30 +0100 Subject: [PATCH] rsyslog: only install S01rsyslog if not present in fs skeleton To allow custom configurations. Reported-by: Maxime Ripard Signed-off-by: Peter Korsgaard --- package/rsyslog/rsyslog.mk | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package/rsyslog/rsyslog.mk b/package/rsyslog/rsyslog.mk index 6582812b75..b7576cd5c2 100644 --- a/package/rsyslog/rsyslog.mk +++ b/package/rsyslog/rsyslog.mk @@ -13,8 +13,9 @@ ifeq ($(BR2_PACKAGE_BUSYBOX),y) endif define RSYSLOG_INSTALL_CONF_SCRIPT - $(INSTALL) -m 0755 -D package/rsyslog/S01rsyslog \ - $(TARGET_DIR)/etc/init.d/S01rsyslog + [ -f $(TARGET_DIR)/etc/init.d/S01rsyslog ] || \ + $(INSTALL) -m 0755 -D package/rsyslog/S01rsyslog \ + $(TARGET_DIR)/etc/init.d/S01rsyslog [ -f $(TARGET_DIR)/etc/rsyslog.conf ] || \ $(INSTALL) -m 0644 -D $(@D)/rsyslog.conf \ $(TARGET_DIR)/etc/rsyslog.conf -- 2.30.2