sysklogd: install configuration file unconditionally
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 30 Nov 2014 14:18:56 +0000 (15:18 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Mon, 1 Dec 2014 23:34:52 +0000 (00:34 +0100)
As discussed, users should use a rootfs overlay or a post-build script
instead of a custom skeleton to override files installed by Buildroot,
so there is no point in having conditions when installing init scripts
or configuration files.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/sysklogd/sysklogd.mk

index 2b60b4546904fd536ef64571ac937a02d30bc084..1e8652d1a56f76d254be713b1ae502eb75bb1885 100644 (file)
@@ -21,10 +21,8 @@ endef
 define SYSKLOGD_INSTALL_TARGET_CMDS
        $(INSTALL) -D -m 0500 $(@D)/syslogd $(TARGET_DIR)/sbin/syslogd
        $(INSTALL) -D -m 0500 $(@D)/klogd $(TARGET_DIR)/sbin/klogd
-       if [ ! -f $(TARGET_DIR)/etc/syslog.conf ]; then \
-               $(INSTALL) -D -m 0644 package/sysklogd/syslog.conf \
-                       $(TARGET_DIR)/etc/syslog.conf; \
-       fi
+       $(INSTALL) -D -m 0644 package/sysklogd/syslog.conf \
+               $(TARGET_DIR)/etc/syslog.conf; \
 endef
 
 define SYSKLOGD_INSTALL_INIT_SYSV