rsyslog: only install S01rsyslog if not present in fs skeleton
authorPeter Korsgaard <jacmet@sunsite.dk>
Wed, 23 Nov 2011 22:28:30 +0000 (23:28 +0100)
committerPeter Korsgaard <jacmet@sunsite.dk>
Wed, 23 Nov 2011 22:28:30 +0000 (23:28 +0100)
To allow custom configurations.

Reported-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/rsyslog/rsyslog.mk

index 6582812b75ff33d14d5e4df868f29d5af3efee74..b7576cd5c23f7dd0d0f154902d2bdb012895dae3 100644 (file)
@@ -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