From 3c129346a23e45c6eac803a5faf54279dbf97b5e Mon Sep 17 00:00:00 2001 From: Jaehoon You Date: Mon, 18 May 2015 13:50:03 +0900 Subject: [PATCH] coova-chilli: fix stat failed error when compile without kmod This patch fixes #1261. Signed-off-by: Jaehoon You --- net/coova-chilli/Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/net/coova-chilli/Makefile b/net/coova-chilli/Makefile index 32e394000a..b8acf5426f 100644 --- a/net/coova-chilli/Makefile +++ b/net/coova-chilli/Makefile @@ -134,8 +134,10 @@ define Package/coova-chilli/install $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/chilli* $(1)/usr/sbin/ $(INSTALL_DIR) $(1)/usr/lib/ $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib*.so.* $(1)/usr/lib/ - $(INSTALL_DIR) $(1)/usr/lib/iptables - $(CP) $(PKG_INSTALL_DIR)/usr/lib/iptables/lib*.so $(1)/usr/lib/iptables/ + $(if $(CONFIG_PACKAGE_kmod-ipt-coova), \ + $(INSTALL_DIR) $(1)/usr/lib/iptables; \ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/iptables/lib*.so $(1)/usr/lib/iptables/ \ + ) $(INSTALL_DIR) $(1)/etc/init.d $(INSTALL_BIN) files/chilli.init $(1)/etc/init.d/chilli $(INSTALL_DIR) $(1)/etc/config -- 2.30.2